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>

猜你喜欢

转载自hje.iteye.com/blog/1169181
今日推荐