blog » Apache&php&Ftp / Linux Server »

虚拟主机支持

下面是我配置的虚拟主机内容.

NameVirtualHost *
<VirtualHost *>
ServerName www.ptubuntu.com
DocumentRoot /home/www/html/
</VirtualHost>
如果你的主机上没有设置有两个.那么这第一个是默认的主机.所以你要添加只能添加下面两个新的虚拟主机才是正确的.
<VirtualHost *>
ServerName lab.test.com
DocumentRoot /home/www/html/test
</VirtualHost>
<VirtualHost *>
ServerName beta.test.com
DocumentRoot /home/www/html/test
</VirtualHost>

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2009/12/3334.html

Share
RSS 2.0 | leave a response | trackback

发表评论


Verify Code   If you cannot see the CheckCode image,please refresh the page again!