GET
s到
/parse/login
和
/login
.希望503s能快速加载页面几次。
打
/解析/登录
我明白了
403
击打
/登录
我明白了
404
s
我只是想验证一下这是否有效
server {
listen 8080;
if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})T(\d{2})") {
set $year $1;
set $month $2;
set $day $3;
set $hour $4;
}
access_log /var/log/nginx/healthd/application.log.$year-$month-$day-$hour healthd;
access_log /var/log/nginx/access.log main;
proxy_pass http://nodejs; # should probably remove this?
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
limit_req zone=mylimit burst=10 nodelay;
proxy_pass http://nodejs;
}
location /parse/login/ {
deny all;
}
location /login/ {
limit_req zone=mylimit burst=10 nodelay;
proxy_pass http://nodejs;
}
gzip on;
gzip_comp_level 4;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
}
在部署到生产环境之前,有没有关于如何确保此功能正常工作的建议?