浏览 1.6k
server {
listen 20001;
server_name localhost;
location /portal/ {
root html/portal;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /application/ {
root html/application;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /screen/ {
root html/screen;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}

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