apache禁止通过IP进行访问
<VirtualHost *:80> ServerName 10.10.10.188 DocumentRoot "/var/www/error" <Directory /> Require all denied </Directory> </VirtualHost>
需要将这个放到其他虚拟目录的最前面,后面再接其他的网站。
我测试的时候是使用的阿里云专有网络,10.10.10.188是我的内网的IP。
除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/237.html