欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

nginx虛擬主機(jī)配置實(shí)例詳解

 更新時(shí)間:2017年06月14日 10:38:00   投稿:lqh  
這篇文章主要介紹了nginx虛擬主機(jī)配置實(shí)例詳解的相關(guān)資料,需要的朋友可以參考下

nginx虛擬主機(jī)配置

server {
  listen    80;
  server_name localhost;
  
  location / {
    root  html;
    index index.html index.htm;
  }

  error_page 404       /404.html;

  # redirect server error pages to the static page /50x.html
  # error_page  500 502 503 504 /50x.html;
  location = /50x.html {
  root  html;
  }
} 

配置說明:

listen 80; =>指定虛擬主機(jī)監(jiān)聽的是80端口
server_name localhost; =>指定虛擬主機(jī)域名
location / { ... } =>匹配請求路徑,/表示匹配所有請求
root html; =>指定虛擬主機(jī)的物理根目錄,eg、html物理根目錄位于D:\div\nginx-1.9.14\html\
index index.html index.htm; =>指定虛擬主機(jī)的默認(rèn)首頁,默認(rèn)首頁位于D:\div\nginx-1.9.14\html目錄下

感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

相關(guān)文章

最新評論