First, Windows installation Nginx
1, download the Windows version of the Nginx installation package
: Http://nginx.org/download/nginx-1.10.2.zip
2, unzip to the corresponding directory, such as I am C and then modify the directory name nginx-1.10.2
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8B/7D/wKiom1hPcOPgPAwsAAAELd5_-KE082.png-wh_500x0-wm_3 -wmp_4-s_1059030053.png "title=" Clipboard.png "alt=" Wkiom1hpcopgpawsaaaeld5_-ke082.png-wh_50 "/>
3, Enter the nginx-1.10.2 directory double-click Nginx.exe to start Nginx
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8B/7A/wKioL1hPiLWD7YR8AAA9EXHD1Jo439.png-wh_500x0-wm_3 -wmp_4-s_3328536658.png "title=" Qq20161213133509.png "alt=" Wkiol1hpilwd7yr8aaa9exhd1jo439.png-wh_50 "/>
4, at this time directly in the browser address bar input: localhost will be able to see the Welcome page, indicating that your virtual host has been built.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8B/7A/wKioL1hPiY3gMeEEAABxv-3nU2o176.png-wh_500x0-wm_3 -wmp_4-s_225414108.png "title=" Qq20161213133840.png "alt=" Wkiol1hpiy3gmeeeaabxv-3nu2o176.png-wh_50 "/>
Second, open the Directory Access function.
1, to modify the Nginx configuration file, nginx configuration file in the Conf directory nginx.conf.
Open the nginx.conf file. Make the following changes:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/7A/wKioL1hPjQ-Tj0G_AABTPPn_jV8292.png-wh_500x0-wm_3 -wmp_4-s_3562556551.png "title=" Qq20161213135349.png "alt=" Wkiol1hpjq-tj0g_aabtppn_jv8292.png-wh_50 "/>
Note: 1, the need for Nginx to open the indexing function, the specific way to open the site configuration file in Nginx HTTP or server section plus "AutoIndex on;". This opens the Nginx directory browsing feature.
2, if you need to access the directory or file has Chinese, you want to add in Nginx configuration file
CharSet UTF-8,GBK; Sets the character set.
2. Restart Nginx for access.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8B/7D/wKiom1hPjfLDlGwSAAAcCNVCM9w607.png-wh_500x0-wm_3 -wmp_4-s_2158203885.png "title=" Qq20161213135752.png "alt=" Wkiom1hpjfldlgwsaaaccnvcm9w607.png-wh_50 "/>
This article from "Round" blog, reproduced please contact the author!
Windows installation Nginx, and open the Directory file List feature