配置nginx反向代理

配置nginx反向代理

vim /etc/profile

export NGINX_HOME=/usr/local/nginx
export PATH=$PATH:$NGINX_HOME/sbin

source /etc/profile

nginx
ps aux | grep nginx | grep -v grep
    upstream nginx {
	server 192.168.99.150:80 weight=1;
	server 192.168.99.151:80 weight=1;	
}
        location / {
            #root   html;
            #index  index.html index.htm;
            proxy_pass http://nginx;
        }

posted @ 2021-12-06 09:40  罗斯大人  阅读(26)  评论(0)    收藏  举报