Nginx添加多個網站,禁止通過ip訪問,禁止訪問某些目錄
同一個nginx上安裝多個網站的方法在nginx.conf的http{}中按照說明修改server{}字段server{listen80;server_namewww.example.com;#所綁定的域名location/{rootexample;#該域名對應的網站根目錄indexindex.htmlindex.htmindex.php;}location...
關于 禁止IP 的文章共有1條
同一個nginx上安裝多個網站的方法在nginx.conf的http{}中按照說明修改server{}字段server{listen80;server_namewww.example.com;#所綁定的域名location/{rootexample;#該域名對應的網站根目錄indexindex.htmlindex.htmindex.php;}location...