Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Webserver returns wrong domain / ip
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dawharl
n00b
n00b


Joined: 28 Dec 2004
Posts: 25
Location: Netherlands

PostPosted: Tue Apr 05, 2005 12:34 pm    Post subject: Webserver returns wrong domain / ip Reply with quote

First of all, I'm behind a speedtouch adsl router with NAT translation.

Now I've a box with a webserver, which's port has been mapped correctly.

But the problem is when someone from the outside connects to the webpage he'll get's the correct page, but when clicks on a link the webserver returns the wrong (local) domain:
box.lan for instance with the local ip 10.0.0.175
I've got an domain name from homelinux.net net which points to my ip adres.

Now I've heard all kind of things which I should conifgure, but it's getting a bit confusing...
The thing is, I don't want to change any domain settings on the speedtouch because other pc's are depending on it.

Could someone tell me which file's I should change/edit in order to get my server to return the correct (external) ip / domain?

Currently my /etc/hosts file has only a 127.0.0.0 entry and my /etc/domainname is empty
_________________
Gigabyte GA-K8NF-9, AMD64 3000+, 2x 512Mb Geil dual channel, Gigabyte Geforce 6600GT, 200Gb Maxtor Dmax 10 sata, Zalman ZM-400B-APS
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Apr 05, 2005 1:20 pm    Post subject: Re: Webserver returns wrong domain / ip Reply with quote

dawharl wrote:

Currently my /etc/hosts file has only a 127.0.0.0 entry and my /etc/domainname is empty

err, so what about fixing this first 8O
Back to top
View user's profile Send private message
dawharl
n00b
n00b


Joined: 28 Dec 2004
Posts: 25
Location: Netherlands

PostPosted: Tue Apr 05, 2005 1:31 pm    Post subject: Reply with quote

actually that doesn't needs to be fixed...

I've fixed it somehow know with apache's virtual hosts, so that the server can be reached from external (wan) locations.

But know I've got a problem, because I can't connect from local site's anymore, so i need to somehow trick my router to do that for me :)
_________________
Gigabyte GA-K8NF-9, AMD64 3000+, 2x 512Mb Geil dual channel, Gigabyte Geforce 6600GT, 200Gb Maxtor Dmax 10 sata, Zalman ZM-400B-APS
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Apr 05, 2005 1:55 pm    Post subject: Reply with quote

dawharl wrote:
actually that doesn't needs to be fixed...

yes it does. and you save the time tricking your router.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum