`
hje
  • 浏览: 284226 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

apache 防止恶意域名指向

 
阅读更多

NameVirtualHost *

<VirtualHost *>
DocumentRoot D:/www/error
ServerName *
</VirtualHost>

 

<VirtualHost *>
ServerAdmin 218.57.239.3
ServerName 9999999.com
ServerAlias 9999999.com
DocumentRoot D:/www/hsxy/web
DirectoryIndex index.html index.htm index.php
<Directory D:/www/hsxy/web>
AllowOverride None
Options Indexes FollowSymLinks
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>


<VirtualHost *>
ServerAdmin 218.57.239.3
ServerName 218.57.239.3
ServerAlias 218.57.239.3
DocumentRoot D:/www/hsxy/web
DirectoryIndex index.html index.htm index.php
<Directory D:/www/hsxy/web>
AllowOverride None
Options Indexes FollowSymLinks
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics