社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
修改nginx.conf 文件,增加负载均衡和发现代理
proxy_pass 反向代理
upstream 负载均衡
重新加载配置文件nginx -s reload
验证反向代理是否生效,BPQ了,生效是生效,但貌似图片、js、css等没都生效,排查原因!
在nginx的配置文件中加上
location ~ \.(jpg|png|jpeg|bmp|gif|swf|css)$
{
access_log off;
expires 30d;
root /www/htdocs/market;
break;
}
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!