Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Odd DNS problem...
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
LostGen
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 84

PostPosted: Thu Jul 07, 2005 4:44 pm    Post subject: Odd DNS problem... Reply with quote

Ok I have a computer at my house running apache2/squirrelmail and Bind for dns resolution. All my computers inside my network can use squirrelmail just fine. From outside my house it behaves like this:

Open up webbrowser type in URL http://<mydnsname>.com and it pulls up the default apache2 page which is correct. Then I append the following to http://<mydnsname>.com/squirrelmail and it changes the URL to this http://192.168.1.10/squirrelmail.... Obviously 192.168.1.10 is not going to work outside fo my local lan... Im trying to understand what I am doing wrong. Its odd that my domainname resolves in the outside world but when I add /squirrelmail to my domainname it changes to 192.168.1.10....

Any ideas? I thought a quick fix might be to link squirrelmail directly to http://<domainname> instead of http://<domainname>/squirrelmail, just not sure how to do that.

Thanks all for the help!

LG
Back to top
View user's profile Send private message
RoadRunn
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162

PostPosted: Thu Jul 07, 2005 5:11 pm    Post subject: Re: Odd DNS problem... Reply with quote

LostGen wrote:
Ok I have a computer at my house running apache2/squirrelmail and Bind for dns resolution. All my computers inside my network can use squirrelmail just fine. From outside my house it behaves like this:

Open up webbrowser type in URL http://<mydnsname>.com and it pulls up the default apache2 page which is correct. Then I append the following to http://<mydnsname>.com/squirrelmail and it changes the URL to this http://192.168.1.10/squirrelmail.... Obviously 192.168.1.10 is not going to work outside fo my local lan... Im trying to understand what I am doing wrong. Its odd that my domainname resolves in the outside world but when I add /squirrelmail to my domainname it changes to 192.168.1.10....

Any ideas? I thought a quick fix might be to link squirrelmail directly to http://<domainname> instead of http://<domainname>/squirrelmail, just not sure how to do that.

Thanks all for the help!

LG


What if you go directly to http://domain.com/squirrelmail/src/ ?

Almost makes me think you have some sort of redirect page in /htdocs and/or /htdocs/squirrelmail because squirrelmail itself does not to static redirects, only relative.
Back to top
View user's profile Send private message
LostGen
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 84

PostPosted: Thu Jul 07, 2005 5:33 pm    Post subject: Reply with quote

Same thing happens if I type http://<domain>/squirrelmail/src it goes to http://192.168.1.10/squirrelmail/src .... very odd...

LG
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Thu Jul 07, 2005 5:36 pm    Post subject: Reply with quote

You need to make sure that your servername is set correctly in apache2.conf
Back to top
View user's profile Send private message
RoadRunn
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162

PostPosted: Thu Jul 07, 2005 5:38 pm    Post subject: Reply with quote

nobspangle wrote:
You need to make sure that your servername is set correctly in apache2.conf


Yea, I'm using dynamic vhosts for apache2, so i'm a bit out of the loop on configurations for single hosts.
Back to top
View user's profile Send private message
LostGen
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 84

PostPosted: Thu Jul 07, 2005 5:46 pm    Post subject: Reply with quote

nobspangle wrote:
You need to make sure that your servername is set correctly in apache2.conf


My apache2.conf is just the default conf with the servername uncommented and looking like this:

ServerName <mydomain>

somthing odd has got to be going on I just cant figure it out. Would it be possible to just make a virtualhost for squirrelmail and point it http://<mydomain> ?


LG
Back to top
View user's profile Send private message
RoadRunn
Apprentice
Apprentice


Joined: 10 Jun 2004
Posts: 162

PostPosted: Thu Jul 07, 2005 5:50 pm    Post subject: Reply with quote

LostGen wrote:
nobspangle wrote:
You need to make sure that your servername is set correctly in apache2.conf


My apache2.conf is just the default conf with the servername uncommented and looking like this:

ServerName <mydomain>

somthing odd has got to be going on I just cant figure it out. Would it be possible to just make a virtualhost for squirrelmail and point it http://<mydomain> ?


LG


I use the dynamicvhosts.conf file from apache2. this allows me to make a directory in /var/www/vhosts with the name of the host i want to serve as. For example I want my squirrelmail page to be hosted as https://mail.domain.com (right in the root, no /squirrelmail dir). So I created a "mail.domain.com" dir in /var/ww/vhosts, and then a htdocs dir under it. The squirrelmail is installed directly in htdocs. I do a bit of development so it's very handy when I want to stand up a new dev site and bring it down shortly without having to worry with permissions and conf files.
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