标签:location bre real ade proxy index server lang lan
ytt.conf
server {
listen 80;
server_name ytt.haimait.com;
location / {
index index.html index.htm;
root /home/work/go/src/linkbook.com/yttAdmin/dist;
}
location ~ ^/yttapi/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
rewrite ^/yttapi/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8877;
}
}
标签:location bre real ade proxy index server lang lan
原文地址:https://www.cnblogs.com/haima/p/13234853.html