Page 1 of 1

URL is redirected to localhost (incorrectly)

Posted: Wed Jan 03, 2007 8:51 pm
by woger
Hi
I'm using WAMP 1.6.6 on Win XP
I have a Bipac 7300 Router setup with Virtual server to redirect incoming requests on port 80 to the internal IP address.

I'm using a dynamic dns too - I believe it's set up correctly.

When I put my "domain" in - basil.dyn-o-saur.com into the browser, it redirects to http://localhost/xxxxx/login/index.php

In my httpd.conf file, I can't find reference to that anywhere:
I have in the file:
Listen 80
ServerName basil.dyn-o-saur.com:80

I've checked httpd.conf for some config that would redirect to localhost - where I was testing before trying to go live.

Any suggestions on where I've gone wrong please?

Woger

Posted: Wed Jan 03, 2007 8:57 pm
by feyd
The router shouldn't be redirecting so much as forwarding.

Posted: Wed Jan 03, 2007 10:14 pm
by woger
Thanks. Forwarding is what I should have typed!!

Posted: Wed Jan 03, 2007 10:59 pm
by woger
Fixed the problem

As basic as a problem with a redirect in a HTML page

Thanks

Posted: Wed Jan 03, 2007 11:04 pm
by Kieran Huggins
Works from outside the router.. which is the correct behaviour. I was redirected to http://basil.dyn-o-saur.com/college/login/index.php

If you want to fully mock the environment from inside your network, open:

Code: Select all

c:\WINDOWS\system32\drivers\etc\hosts
and add the following line:

Code: Select all

basil.dyn-o-saur.com    127.0.0.1
This file is trusted over your DNS server, so you can override domain resolution for the local machine here.