本文共 735 字,大约阅读时间需要 2 分钟。
最近有和 nginx 作斗争,一些掉落如下。
listen 1997;location /img { root img/sky;}
访问 http://ip:1997/img/morning.jpg
,其实访问 http://ip:1997/img/img/sky/morning.jpg
。
listen 1997;location /img { alias img/sky;}
访问 http://ip:1997/img/morning.jpg
,其实访问 http://ip:1997/img/sky/morning.jpg
。
listen 1997;location /img/sky { proxy_pass http://ip_another:port_another/static/sky;}
访问 http://ip:1997/img/sky/morning.jpg
,其实访问 http://ip_another:port_another/static/sky/img/sky/morning.jpg
。
listen 1997;location /img/sky { proxy_pass http://ip_another:port_another/static/sky/;}
访问 http://ip:1997/img/sky/morning.jpg
,其实访问 http://ip_another:port_another/static/sky/morning.jpg
。
无。
转载地址:http://kqbws.baihongyu.com/