天天看點

WEB伺服器Nginx WINDOWS最簡部署

  • 下載下傳
http://nginx.org/en/download.html
  • 解壓
  • 運作

nginx.exe

  • 打開網頁
http://localhost/
  • 檢視配置檔案

conf\nginx.conf

server {
        listen       80;
        server_name  localhost;
 
        #charset koi8-r;
 
        #access_log  logs/host.access.log  main;
 
        location / {
            root   html;
            index  index.html index.htm;
        }      

這裡的/,指的是目錄html

繼續閱讀