Home > Backend Development > PHP Tutorial > Unable to use Nginx as an http file server under Windows (permission issue?)

Unable to use Nginx as an http file server under Windows (permission issue?)

WBOY
Release: 2016-07-29 09:07:03
Original
2408 people have browsed it

The Nginx version used here comes from the latest OpenResty.

nginx.conf:

    server {
        listen       8000;
        server_name  chenzx  alias  chenzx.localhost;

        location / {
            root   f:/;
            autoindex on;
            #index  index.html index.htm;
        }
    }
Copy after login

Can’t find a solution online (is Nginx born for Linux systems?)

C:\ngx_openresty-1.9.7.1-win32>nginx.exe
Copy after login

Start nginx directly from the command line and cannot end it with Ctrl+Z/C ~~~ Pitfall


nginx seems to need to be started with start nginx under windows, and then you can run nginx -s stopend the process

The above introduces the inability to use Nginx as an http file server under Windows (permission issue?), including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template