导入/包含要在Apache的httpd.conf中使用的外部VirtualHost文件

时间:2011-06-29 19:59:10

标签: apache virtualhost httpd.conf

您是否知道如何将VirtualHost文件导入httpd.conf?例如:

start of httpd.conf:
    .
    .
    .
    Import team-virtual-host.conf
    .
    .
    .
end of httpd.conf

start of team-virtual-host.conf:
<VirtualHost 216.154.214.172:80>
    ServerName  bestrds.com
    blah blah blah
</Virtualhost>

感谢您的帮助。

1 个答案:

答案 0 :(得分:12)

简单:

include team-virtual-host.conf