View previous topic :: View next topic |
Author |
Message |
LostGen Tux's lil' helper
Joined: 02 Feb 2005 Posts: 84
|
Posted: Thu Jul 07, 2005 4:44 pm Post subject: Odd DNS problem... |
|
|
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 |
|
|
RoadRunn Apprentice
Joined: 10 Jun 2004 Posts: 162
|
Posted: Thu Jul 07, 2005 5:11 pm Post subject: Re: Odd DNS problem... |
|
|
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 |
|
|
LostGen Tux's lil' helper
Joined: 02 Feb 2005 Posts: 84
|
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Thu Jul 07, 2005 5:36 pm Post subject: |
|
|
You need to make sure that your servername is set correctly in apache2.conf |
|
Back to top |
|
|
RoadRunn Apprentice
Joined: 10 Jun 2004 Posts: 162
|
Posted: Thu Jul 07, 2005 5:38 pm Post subject: |
|
|
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 |
|
|
LostGen Tux's lil' helper
Joined: 02 Feb 2005 Posts: 84
|
Posted: Thu Jul 07, 2005 5:46 pm Post subject: |
|
|
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 |
|
|
RoadRunn Apprentice
Joined: 10 Jun 2004 Posts: 162
|
Posted: Thu Jul 07, 2005 5:50 pm Post subject: |
|
|
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 |
|
|
|