WordPress Development Stack Exchange is a question and answer site for WordPress developers and 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 created an additional site on my multisite subdomain installation. Now when I try to visit the new site or its wp-admin, I get a 404 error.

My wordpress instance is hosted on AWS

Checked the following

  • AllowOverride is set to All in httpd.conf
  • contents of .htaccess are the same as those in Network settings
  • added the necessary statements to wp-config.php
  • Tried restarting httpd as well

What else could I be doing wrong?


share|improve this question
up vote 2 down vote accepted

You need to set a wildcard serveralias in that site's virtualhost declaration. Right under where it says ServerName example.com you should add another line like this:

ServerAlias *.example.com

You might have already done that, but it was the only thing missing from the list of things you had checked.

share|improve this answer
No. I haven't added it. I don't see a <VirtualHost> tag in my httpd.conf. There isn't even a ServerName but I added it. When I add ServerAlias beneath it, it gives an error - ServerAlias only used in <VirtualHost> – lostInTransit Jun 9 '11 at 14:56
So how do I add the ServerAlias? And will it cause any issues if I add a VirtualHost tag to my httpd.conf? When is it used? – lostInTransit Jun 9 '11 at 14:57
What are the specs on your server (OS, version of Apache, etc)? – John P Bloch Jun 9 '11 at 15:20
Generally, those things won't be in your httpd.conf file. They're usually in their own files so that they can be enabled and disabled. On my server (Ubuntu 11.04), the virtualhost files are in /etc/apache2/sites-available. – John P Bloch Jun 9 '11 at 15:22
Hosted on AWS - Apache version 2.2.16 (Unix server) – lostInTransit Jun 9 '11 at 19:37

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.