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 two domains. Domain1 uses IP1, and Domain2 uses IP2, however they both point at the same VPS.

I got it working if I go to, however going to gets stuck on the loading screen and ultimately says Oops! Google Chrome could not find!. It does this in Firefox and IE as well.

While it's loading, it says Resolving Host at the bottom of my screen (in firefox, it says Looking Up

I followed this tutorial to the letter. Basically:

1) Make a public_html directory

2) Run chmod to give 755 perms

3) Create an index file

4) Run command cp /etc/apache2/sites-available/default /etc/apache2/sites-available/

5) Use nano to edit said file

6) Make this the file:

<VirtualHost *:80> ServerAdmin ServerName ServerAlias DocumentRoot /var/www/ </VirtualHost>

7) Run a2ensite

8) Restart apache

share|improve this question
Do you have a DNS record for www that points to the correct ip address? – joeqwerty Apr 4 '14 at 3:32
@joeqwerty Oh my god... This is what I get for staying up for two days straight. I updated the nameservers to point at through my registrar but didn't update my nameservers. Whoops. Thanks for pointing that out! – user215116 Apr 4 '14 at 3:53
Glad to help... – joeqwerty Apr 4 '14 at 3:56
up vote 2 down vote accepted

This sounds like an issue with your DNS entry. Make sure you have an entry for the sub-domain(www) and the it points to

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.