WebFaction
Community site: login faq

Three times during that last half year we have had our servers resolved to the wrong site. We are using apache vhost as below? Any clue as to what could have happened and how to fix it? Thanks.

<VirtualHost *:34511>
    ServerName www.mysite.dk
    ServerAlias www.mysite.dk
    WSGIScriptAlias / /home/mysite/production/www.mysite.dk.wsgi
</VirtualHost>

<VirtualHost *:34511>
    ServerName admin.mysite.dk
    ServerAlias admin.mysite.dk
    WSGIScriptAlias / /home/mysite/production/admin.mysite.dk.wsgi
</VirtualHost>

<VirtualHost *:34511>
    ServerName dansk.mysite.dk
    ServerAlias dansk.mysite.dk
    WSGIScriptAlias / /home/mysite/production/dansk.mysite.dk.wsgi
</VirtualHost>

<VirtualHost *:34511>
    ServerName infoscreen.mysite.dk
    ServerAlias infoscreen.mysite.dk
    WSGIScriptAlias / /home/mysite/production/infoscreen.mysite.dk.wsgi
</VirtualHost>

asked 31 Mar '11, 09:33

Niels
1125
accept rate: 0%

edited 31 Mar '11, 09:36

I can't think of a reason for this off the top of my head.

When it was resolving the wrong site, did it come back on it's own or did you have to do anything?

(31 Mar '11, 09:57) David L ♦♦

Thanks for your answer. One time I restarted the server, and it came back to the correct sites for each domain. Another time I think the issue was fixed after five hours.I'm not even sure what the cause is. I am just suspecting that vhost could be it.

Do I need to set anything special in the config to make sure I get the domain from webfactions front proxy? We used to have an Apache server for each site, and we never saw the issue back then.

(31 Mar '11, 10:26) Niels

That's really strange.

You shouldn't need to do anything special. We actually have a lot users doing exactly this without any problems.

I have a few more questions:

  1. How were the sites affected? Were all sites being directed to a single other site or was it a subset of the sites?

  2. Do you have any wildcard domains set up?

I don't think the wildcard is the issue but I wouldn't rule anything out.

(31 Mar '11, 10:35) David L ♦♦

If you went to our www site you would be served the infoscreen on the two first incidents and the admin site on the third incident. I am not sure about the other domains. We don't have any wildcards in our apache conf or webfaction domains. I don't have access to our dns.

(31 Mar '11, 11:52) Niels
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×4

question asked: 31 Mar '11, 09:33

question was seen: 3,384 times

last updated: 31 Mar '11, 11:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM