当服务器被恶意解析指向导致用其它的域名也能访问时,可以在Nginx配置文件中设置只有允许的域名才能访问。 # 设置非指定域名访问则不允许访问 set $hostflag 0; if ($host != '') { ?? set $hostflag "${hostflag}1"; } if ($host != '...
参考链接https://`/tags/MtjaEg4sODAyNjgtYmxvZwO0O0OO0O0O.html 自定义一个test.html页面,放到了linux的usr/local/test下 配置nginx.conf时,没有搞清楚location下的root和alias的区别: alias 正如其名,alias指定的路径是location的别名,不管lo...