接上集,做了个反向代理,然后
这**********************,CSS、图片全无,就剩一个index.html,*****************。
然后啊,很快啊,我就看到了问题所在。
location / {
proxy_pass #;
proxy_set_header Connection close;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
其实呢,需要来个通配符代理。
询问大傻子GPT3.5之后,在一个博客里看到了通配符加载方式,所以应该是这样的答辩。
location ^~/ {
proxy_pass #;
proxy_set_header Connection close;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
这就好了,这就完事了。