No loopback issue

Support for webhosts that use CentOS
Post Reply
MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

No loopback issue

Post by MajorNewbie » 2008/07/08 22:00:09

We are hosting our own website.

My servers are behind a Westell wireless modem which disallow loopbacks and I have a fixed IP-address. Up until now not an issue since, for testing purposes, I can go out to a proxy server and come back in with someone else's DHCP ip-address ie. the Westell modem does not know it's me coming back in.

When using a purchased software login utility: http://localhost/ login.cfm I got the login page asking for username and password which I keyed it as "user/user". Then the login.cfm re-direct the page to http://www.mydomain.com/login.cfm . The browser gets this absolute URL and tries to access www.mydomain.com on a fixed ip-address, which caused it to throw the error message about firewall and proxy problem.

I have been thinking of several solutions:
(1) load BIND and configure as a name server;
(2) modify /etc/hosts by adding following line "192.168.xxx.yyy www.mydomain.com"
(3) modify the code - hardcode it to look for localhost/login.cfm as follows:
I am not a programmer, but I think these Coldfusion lines in login.cfm might have something to do with it:
...

...

...
I think if we hardcode that to http://localhost/... we might bypass this problem until production.

(2) is easiest but it goes into some sort of a loop, everytime I key in username/pwd it throws the login page again.
Of course, using the static IP address won't help either eg. 111.222.333.444 www.mydomain.com
(1) is requires the most effort and there's no guarantee.

Anyone has a suggestion?

THX

MajorNewbie
Posts: 127
Joined: 2008/04/17 00:04:43

Re: No loopback issue

Post by MajorNewbie » 2008/07/08 23:31:59

Perhaps hang a new router behind the current modem-cum-router, one which allows NAT-loopback?

That would cost money :(

Post Reply

Return to “CentOS 5 - Webhosting Support”