Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a current website on an Apache server ( and I want the same server to serve a new site (, is this the correct way to setup my virtual hosts?

<VirtualHost *:80>
    Include conf.d/foo.conf

<VirtualHost *:80>
    Include conf.d/bar.conf

I'm hesitant to do an /etc/init.d/httpd reload without someone double checking! :)

share|improve this question
I am assuming you have a NameVirtualHost somewhere in your configuration already? – Zoredache Mar 17 '10 at 18:38

That looks correct ! You can also always run

 apache2ctl configtest

to make sure the apache config syntax is correct

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.