虚拟主机支持
- 基于主机名的虚拟主机(一个IP地址,多个网站)
- 基于IP地址的虚拟主机(每个站点拥有一个的独立IP地址)
- 虚拟主机的普通配置示例
- 文件描述符限制(在日志文件过多的情况下会产生的限制)
- 动态配置大量虚拟主机
- 深入讨论虚拟主机的匹配
下面是我配置的虚拟主机内容.
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
it was at about that same time, back around the year 1910 that the three men who ran the firm, for some unknown reason decided to change the name of their company
from Simplo Fuller to Mont Blanc. A name that of course remains to this day.