LNMP4

Nginx防盜鏈

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


Nginx訪問控制

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

訪問測試


Nginx解析php相關配置

 

 

 

 

 


Nginx代理

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

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息