国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

服務器上nginx無法訪問html的配置問題
巴扎黑
巴扎黑 2017-06-20 10:07:52
0
1
1051

服務器上 /www/cms/production/current/dist 下有index.html

nginx配置:

server {
  listen 3002;
  root /www/cms/production/current/dist;
  index index.html;
  server_name xxx.xxx.com;

  location / {
    try_files $uri $uri/ /index.html;
  }

  location /api/ {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-Nginx-Proxy true;

    proxy_pass http://127.0.0.1:3000/api;
    proxy_redirect off;
  }
}

為何通過xxx.xxx.com只顯示了一個welcome to nginx的頁面,顯示不了我的index.html呢?

巴扎黑
巴扎黑

全部回復(1)
習慣沉默

端口寫錯了,已解決

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板