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'm having trouble getting multiple sites working with Apache on Ubuntu 10.04. I have two sites I want to serve from the same VPS, and The problem is, both domains are pointing to the site for instead of their own respective sites. is apache2's default domain because it's the vhost that's loaded first. I know for a fact that NameVirtualHost *:80 is being set in ports.conf, which is included into apache2.conf about 10 lines before these vhost configs in sites-enabled/ are. All of the permissions check out for all directories involved.

My apache.conf is standard from Ubuntu 10.04.

Here's my ports.conf:

And here are my vhosts:


<VirtualHost *:80>
    DocumentRoot /var/apps/psycho/public


<VirtualHost *:80>
    DocumentRoot /var/apps/mahogany/public
share|improve this question

Dumb question, but did you restart the apache service? Not sure how to do that on Ubuntu (CentOs: services httpd restart), but rebooting the server will work too.

share|improve this answer

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.