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

So i am using WordPress network sub-domain setup. I had to put a * as a server alias but now i also have a site that leads to another directory. Is there a way of doing this since when i type in it just loads the WordPress sign up page.

And yes i do have a v host setup for it

share|improve this question
up vote 6 down vote accepted

I'm assuming that you have two VirtualHosts:

  1. VH for WP that hosts *
  2. VH for independant webiste that hosts

Make sure that your VirtualHost is loaded or located in file before the VirtualHost with ServerAlias of *

Apache will use the 1st VH it finds that matches ServerName/Alias.

Then restart Apache.


In file it should be...

<VirtualHost *:80>

<VirtualHost *:80>
  ServerAlias *

You can get the default VH and load order by running: httpd -S

share|improve this answer
I did this and the loads no matter what. Can you show me an example of the vhost config i need – xLRDxREVENGEx May 31 '11 at 5:32
xLRDxREVENGEx, edited. – rightstuff May 31 '11 at 13:25
Do I use documentroot or directory – xLRDxREVENGEx May 31 '11 at 15:19
xLRDxREVENGEx, I'm not sure what you mean? Each VH block should have a DocumentRoot, and a Directory block giving access and override permissions (and options) for that DocumentRoot. – rightstuff May 31 '11 at 15:44
Ok well i had this setup before and any time i viewed any site that had it always went to the same page – xLRDxREVENGEx May 31 '11 at 20:47

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.