Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 setup a LAMP server with CentOS. It will be used as a development server within our domain. It is our first Linux server and would like to actually put one into production in the future.

The DNS Domain Name for this server is and has an internal IP assigned to it

I can get the first ( host to host to work, but I cannot get the second virtual host ( to work.

Here is what I have in my vhost.conf file.

NameVirtualHost *:80

<VirtualHost *:80>
 ServerAdmin joe.****
 DocumentRoot /var/www/html/
 ErrorLog /var/www/error/error.log
 CustomLog /var/www/error/access.log combined

<VirtualHost *:80>
 ServerAdmin joe.****
 DocumentRoot /srv/www/TESTSITE/public_html/ 

Thank you for your help! Joe

share|improve this question
What error are you seeing? Does public_html have any content? – Joshua May 25 '12 at 21:20
I'd install webmin and use that to configure the new vhost, you can then look in the httpd config file to see what it wrote for you. You'll have to give more information about what happens than expect us to guess - it could be filesystem, permissions, dns, etc – gbjbaanb May 25 '12 at 22:15

Have you created the DNS entry for ? Can you ping it?

Does /srv/www/TESTSITE/public_html/ exist?

Have you reloaded restarted apache?

I would also go and make everything lowercase.

share|improve this answer
This is more of a comment than an actual answer... – Silviu May 25 '12 at 22:56

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.