禁止 web页面访问 .git 文件夹
Linux / 2016年11月17日

Nginx location ^~ /.git { return 404; } Apache 2.2 <Directory "/home/data/www/htdocs/made/.git"> Order Deny,Allow Deny from all </Directory> Apache2.4 <Directory "/var/www/html"> # #...

nginx 301 跳转
Nginx / 2016年11月17日

server { server_name 88885345.com; rewrite ^/(.*) http://www.88885345.com/$1 permanent; }