nginx 的騒操作浪费的时间
# location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
# {
# #解决反向代理无法访问图片
# proxy_pass http://localhost:4534;
# proxy_set_header Host $host:$server_port;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# expires 30d;
# }
# location ~ .*\.(js|css)?$
# {
# #解决反向代理无法访问js,css
# proxy_pass http://localhost:4534;
# proxy_set_header Host $host:$server_port;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# expires 12h;
# }
本身注释了就好好的加就导至各种问题(sping的验证码显示不了)页面显示不正常