LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-15-2011, 12:38 AM   #1
scottmusician
Member
 
Registered: Jul 2011
Location: Melbourne, AU
Distribution: CentOS
Posts: 58

Rep: Reputation: Disabled
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!
 
Old 09-15-2011, 02:18 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 09-15-2011, 07:03 AM   #3
scottmusician
Member
 
Registered: Jul 2011
Location: Melbourne, AU
Distribution: CentOS
Posts: 58

Original Poster
Rep: Reputation: Disabled
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?
 
Old 09-15-2011, 07:57 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 09-16-2011, 06:12 AM   #5
scottmusician
Member
 
Registered: Jul 2011
Location: Melbourne, AU
Distribution: CentOS
Posts: 58

Original Poster
Rep: Reputation: Disabled
found the problem in my httpd.conf; thanks!
 
Old 09-16-2011, 06:29 AM   #6
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
iam also some like issue can you tell me which line is giving problem in http.conf
 
Old 09-16-2011, 06:52 AM   #7
scottmusician
Member
 
Registered: Jul 2011
Location: Melbourne, AU
Distribution: CentOS
Posts: 58

Original Poster
Rep: Reputation: Disabled
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/

Last edited by scottmusician; 09-16-2011 at 06:53 AM. Reason: wrong code
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple redirect question? scsi.king Programming 3 04-24-2007 01:44 AM
redirect SquirrelMail from http to https using Apache2 cccc Linux - Server 3 09-23-2006 10:02 AM
Apache & Squirrelmail:Redirect to https? mac_phil Linux - Software 1 05-24-2004 03:52 AM
how to login as root. (simple question. I think) moti Linux - Newbie 2 11-03-2003 02:05 PM
please help, simple question about redirect output kool Linux - General 4 03-18-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration