菜单

Apache取消空主机头

2010年05月24日 - apache

httpd.conf 里加:

NameVirtualHost *    //必须

<VirtualHost *:80>

ServerAdmin yourmail@mail.com

DocumentRoot /error

ServerName abc.com

</VirtualHost>

<VirtualHost *:80>

ServerAdmin yourmail@mail.com

DocumentRoot “你的站点路径

ServerName yourWebsite.com

ServerAlias *.yourWebsite.com

</VirtualHost>

<VirtualHost *:80>

ServerAdmin omail@163.com

DocumentRoot “F:\beta”

ServerName beta.servername.com

<Directory “F:/beta”>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

标签:

发表评论

电子邮件地址不会被公开。 必填项已用*标注