浏览 1.9k
用docker安装的nginx:
docker run --network host --name mynginx -v /var/nginx:/etc/nginx:ro -v /var/www:/usr/share/nginx/html:ro -p 80:80 -d nginx
默认default.conf里的配置:
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
如果把location改成
location /thumb {
root /usr/share/nginx/html;
index index.html index.htm;
}
重启nginx后访问xxx.xxx.xxx.xxx/thumb会提示403
请问怎么解决?

按点赞数排序
按时间排序
sticky模块只能在linux下吧,win下没有。tomcat好像有个session复制吧,或者可以用共享session。
没办法完全不受影响的,因为mirror是子请求,当子请求未结束时,主请求消耗的内存至少是无法释放的。你可以尝试在/mirror里,把超时时间大幅度调低,包括connect/read/send,再压下看看。
微信公众号
加入微信群