login community 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.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<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 Mar 31 '11 at 09:33

Niels's gravatar image

Niels
14

edited Mar 31 '11 at 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?

(Mar 31 '11 at 09:57) David L ♦♦ David%20L's gravatar image

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.

(Mar 31 '11 at 10:26) Niels Niels's gravatar image

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.

(Mar 31 '11 at 10:35) David L ♦♦ David%20L's gravatar image

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.

(Mar 31 '11 at 11:52) Niels Niels's gravatar image
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×151
×1

Asked: Mar 31 '11 at 09:33

Seen: 1,047 times

Last updated: Mar 31 '11 at 11:52

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited