Help - Search - Members - Calendar
Full Version: Why does this happen?
The Planet Forums > System Administration > General Support Questions
DannyITR
I'm presently changing servers and I'm waiting for the dns to propagate on one of my sites. I have a redirect script that I put in place on the old server until the dns has propagated. The link to my new server is

http://69.57.150.44/~west/

but the redirect automatically changes it to this:

http://plain.rackshack.net/~west/

And the result is an error page. If I put the correct address with the IP in the broswer window it still chnages.

Why does this happen?

I changed my server hostname from plain.rackshack.net to a domain that I had previous pointed to the new server. I also chnaged my /etc/hosts file to update the hostname as well. I still get this plain.rackshack.net that replaces my IP when I'm trying to access the website. It's driving me insane. What do I do?
LighthousePoint
ensim likes to re-direct to your hostname. change your hostname to a resolvable name, and it'll work...

such as :

server1.domain.tld
DannyITR
I don't use ensim though, I use cpanel. Can I still do this in Webhostmanager?
Also is this what I actually type : "server1.domain.tld"
DigitalT
you can use Nighthawk's hostname change its in the HOW-to section icon_smile.gif if your a newbie or somebody who prefers a automated way icon_smile.gif

Goodluck.
LighthousePoint
don't actually use "server1.domain.tld" replace it to be a resolvable dns entry, such as

server[number of server].[your domain name].[your tld]
DannyITR
I've been my own host for a year now and I must say I've never heard of any of this before lol. What is an lld? Where do I put that info you mentioned?
DigitalT
LHP means TLD

Top Level Domain is what it means.
LighthousePoint
QUOTE
Originally posted by DigitalT
LHP means TLD

Top Level Domain is what it means.

lol, yeah, I typed it correctly the first time... Repeating myself leads to diminishing accuracy icon_wink.gif
DannyITR
But beofore the dns propagates, how can I use my domain? It will just point to the old server? shouldn't I just put the IP?
LighthousePoint
QUOTE
Originally posted by DannyITR
But beofore the dns propagates, how can I use my domain? It will just point to the old server? shouldn't I just put the IP?

Who in the what now?

Listen : Change your hostname to something that is VALID.

'nuff said. icon_smile.gif
DannyITR
My question is: Is a plain old IP address valid?
x222943
http://forums.ev1servers.net/showthread.ph...&threadid=22882

just follow that howto, and do exactly as it says.. being sure to replace all instances 'plain.rackshack.net' with your hostname and you should be good to go once everything is done resolving..
DannyITR
Where do I specify what my server's main domain name is? (I plan to run about 10 domains off the server) I didn't see a box for it in whm.
DannyITR
I got it working but taking any domain that I had hosted on the server and using it for the hostname. What if you don't have any domains hosted on the server what would one do?
amusive.com
You can set apache to believe its main hostname is your ip.

The reason, btw, it is probably redirecting is you are trying to access:

http://myip/directory

Instead of

http://myip/directory/

The first is not valid; apache redirects you to http://myip/directory/
DannyITR
I changed the hostname, I added a reverse dns entry for the one site that is pointed to my server and I sill get the stupid changing ip address and error pages. I tried to edit my httpd.conf and for servername I put the real name of the server but now that seems to have shut down the server because nothign works. I'm curious why I seem to be the only one to ever ask this question. This must happen to everyone.

I changed the httpd.conf file back but no chnage. Help.
amusive.com
What is your server's IP? The original post has IPs that do not resolve. If I can see exactly what is happening perhaps I can help. Also, post your httpd.conf, or at least the relavent sections.
DannyITR
Hi Thanks for your help. Here is an extract from httpd.conf. Edmontonracing.ca is the only site that is propagated to the server. Everything was working until I change the servername line (in bold). I chnaged it back but it didn't do anything.

QUOTE
NameVirtualHost 69.57.150.44:80
...
Alias /bandwidth/ /usr/local/bandmin/htdocs/


BytesLog domlogs/plain.rackshack.net-bytes_log
ServerName plain.rackshack.net
DocumentRoot /usr/local/apache/htdocs


#Added by cpanel 8.5.5-RELEASE_60 install
ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/base/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/base/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/base/wredirect.cgi
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/base/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/base/sredirect.cgi
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
#Added by cpanel 8.5.5-RELEASE_60 install


   SetHandler server-status
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1

ExtendedStatus On



ServerAlias www.edmontonracing.ca edmontonracing.ca
ServerAdmin webmaster@edmontonracing.ca
DocumentRoot /home2/edmonton/public_html
BytesLog domlogs/edmontonracing.ca-bytes_log
ServerName www.edmontonracing.ca
User edmonton
Group edmonton
CustomLog domlogs/edmontonracing.ca combined
ScriptAlias /cgi-bin/ /home2/edmonton/public_html/cgi-bin/
....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.