Page 1 of 1

IP Address instead of Domain in URL?

Posted: Sat Jan 29, 2005 5:44 am
by jch
I'm using LAMP on a managed server with a single IP Address and Apache configured for virtual servers for the different domains I have hosted there. www.domain-name.com works fine to get me to the blog (great work BTW, very impressive application). However, once there, the domain displays as http://11.22.33.44/ (IP masked in this entry) rather than www.domain-name.com. In S9Y configuration, the domain name is used instead of the IPAddr in URL to Blog.

Have I misconfigured something?

My apache entry is

<VirtualHost 11.22.33.44>
DocumentRoot /var/www/dirname
ServerName domain-name.com
ServerAlias www.domain-name.com
<Directory "/var/www/dirname">
AllowOverride All
</Directory>
</VirtualHost>

Thanks in advance for your help.

Re: IP Address instead of Domain in URL?

Posted: Sat Jan 29, 2005 1:10 pm
by garvinhicking
Hm, I've never seen that behaviour. Can you give us the real domain name to your blog, then I can look at what's happening to a user?

Your VHost setup looks right, though...

Regards,
Garvin

Real Domain

Posted: Sun Jan 30, 2005 7:11 am
by jchotz
Thanks Garvin.

www.e-dilemma.com

Re: Real Domain

Posted: Sun Jan 30, 2005 7:13 pm
by garvinhicking
There's some server interfering and redirecting everytime you access the URL.

Using Mozillas LiveHTTP Headers and requesting your URL, I get:

Code: Select all

HTTP/1.x 302 Found
Connection: close
Date: Sun, 30 Jan 2005 18:12:04 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
HTTP_REFERER: www.e-dilemma.com
Location: http://69.44.57.70
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 135
So there it redirects you via Location: header.

There seems to be a MS IIS server interfering. Maybe DNS redirection?

Regards
Garvin

Posted: Sun Jan 30, 2005 9:45 pm
by jchotz
Thanks Garvin. When I ping e-dilemma.com I get 63.251.83.56. Looks like a DNS Update problem. I samspaded them and sent an email to their NOC.

Thanks again Garvin - and keep up the good work.