nginx反向代理配置
location /api/ {proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header REMOTE-HOST $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://localhost:8083/;}# 刷新页面404
location / { try_files $uri $uri/ /index.html;
}
遇到的问题:
我的https协议的网站,为什么能转到http://localhost:8083/不报错