Nginx添加多個(gè)網(wǎng)站,禁止通過ip訪問,禁止訪問某些目錄
同一個(gè)nginx上安裝多個(gè)網(wǎng)站的方法在nginx.conf的http{}中按照說明修改server{}字段server{listen80;server_namewww.example.com;#所綁定的域名location/{rootexample;#該域名對(duì)應(yīng)的網(wǎng)站根目錄indexindex.htmlindex.htmindex.php;}location...