标签:htm name 这一 moved host .com access ica alt
listen 8030; server_name localhost; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host:$server_port; #这里是重点,这样配置才不会丢失端口 #charset koi8-r; #access_log logs/host.access.log main; location /api { root G:\360MoveData\Users\Administrator\Desktop\code\MicaSpace\micaspace\dist; index index.html index.htm; proxy_pass http://111.231.112.75:8080/api; proxy_redirect http://$host:8080/ http://$host:$server_port/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host:$server_port; }
标签:htm name 这一 moved host .com access ica alt
原文地址:https://www.cnblogs.com/mica/p/10849871.html