标签:
在nginx的配置文件中加上
location ~ \.(jpg|png|jpeg|bmp|gif|swf|css)$
{
access_log off;
expires 30d;
root /www/htdocs/market;
break;
}
云上是这么处理的:
location /mangersis {
proxy_pass http://localhost:8071;
client_max_body_size 100M;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
重启:
ps -ef | grep nginx
kill -9 进程
/usr/local/nginx/sbin/nginx -c /ngbss/webapp/nginx/conf/nginx.conf
标签:
原文地址:http://www.cnblogs.com/yuxingyu/p/4501120.html