vim /usr/local/nginx/conf/vhost/test.confphp
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reloadnginx
curl -e "http://www.baidu.com/1.txt" -x127.0.0.1:80 -I test.com/1.gifvim
curl -e "http://www.test.com/1.txt" -x127.0.0.1:80 -I test.com/1.gifcurl
vim /usr/local/nginx/conf/vhost/test.conf測試
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reloadurl
訪問測試spa
訪問測試代理
vim /usr/local/nginx/conf/vhost/test.conftest
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reload配置
訪問測試
訪問測試
vim /usr/local/nginx/conf/vhost/test.conf
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reload
訪問測試
vim /usr/local/nginx/conf/vhost/proxy.conf
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx -s reload
curl -x127.0.0.1:80 ask.apelearn.com/robots.txt