配置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;
}

浙公网安备 33010602011771号