LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   simple squirrelmail login redirect question (https://www.linuxquestions.org/questions/linux-server-73/simple-squirrelmail-login-redirect-question-903104/)

scottmusician 09-15-2011 12:38 AM

simple squirrelmail login redirect question
 
Hey everyone,

Although my squirrelmail login page comes up correctly as:

https://mail.mydomain.com/src/login.php

users are getting 404 errors after logging in, because a successful login is taking them to:

https://mail.mydomain.comsrc/webmail.php

any ideas on where to change this?

Thanks!

bathory 09-15-2011 02:18 AM

Hi,
Quote:

users are getting 404 errors after logging in, because a successful login is taking them to:

https://mail.mydomain.comsrc/webmail.php
Are you sure there is no slash "/" after mail.mydomain.com? If that's the case you should get a "Server not found" or something like that because of the wrong domain name (mydomain.comsrc).
Getting a 404 error means that the domain part is correct and you're trying to access a page that does not exist. In this case check the web server error_log to see what this page is.

Regards

scottmusician 09-15-2011 07:03 AM

after checking again in firefox, the error isn't a 404, but:

Server not found
Firefox can't find the server at mail.mydomain.comsrc


I've checked the ./conf.pl script settings, certainly no reference to mydomain.comsrc in there... but i'm not sure where else to look?

bathory 09-15-2011 07:57 AM

Hi,
Quote:

Firefox can't find the server at mail.mydomain.comsrc
In this case it's not a squirrelmail misconfiguration.
It looks like you're doing some sort of URL redirection and you have forgotten the trailing slash.
If you're running apache check in httpd.conf and/or .htaccess for the respective directives

Regards

scottmusician 09-16-2011 06:12 AM

found the problem in my httpd.conf; thanks!

centos123 09-16-2011 06:29 AM

iam also some like issue can you tell me which line is giving problem in http.conf

scottmusician 09-16-2011 06:52 AM

hi there!

Yes, sorry for not posting it before.

I had actually setup a redirect so that my https://mail.mydomain.com was the default login page for apache (for instructions on how i did this, see http://www.linuxmail.info/squirrelma.../#virtual-host ). as a part of this, i had to change the code in my .conf file from:

Code:

redirect permanent / https://mail.mydomain.com
to

Code:

redirect permanent / https://mail.mydomain.com/


All times are GMT -5. The time now is 10:50 AM.