In order to solve the project team content application, we plan to share the local e:tools directory. The specific steps are as follows
-
Download the installation package: http://nginx.org/download/nginx-1.9.15.zip
- Unzip
- Modify the configuration file nginx.conf and add the following content in the server section
location /tools {
alias E: Tools;
to to autoindex on; The effect is as follows:
Start the service:
E:ToolsNginxnginx-1.9.15>start nginx.exe
Access the file, and then you can browse the folder contents and download the file:-
If you change the configuration file, you can reload the configuration:
E:ToolsNginxnginx-1.9.15>nginx.exe -s reload-
Stop the service: E:ToolsNginxnginx-1.9.15>nginx.exe -s stop
-
The above introduces a simple and practical version of building an Nginx file server in a Windows environment, including Windows aspects. I hope it will be helpful to friends who are interested in PHP tutorials.
-