Import/include external VirtualHost file to be used inside Apache's httpd.conf

Kamilski81 picture Kamilski81 · Jun 29, 2011 · Viewed 8.4k times · Source

Would you know how to import a VirtualHost file into httpd.conf? For example:

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>

Thanks for the help.

Answer

Gerrat picture Gerrat · Jun 29, 2011

simple:

include team-virtual-host.conf