LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2009, 03:29 AM   #1
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15
webmail redirected to https not working


Hi!

I have installed squirrelmail 1.4.19 on my debian lenny. I have Postfix and Apache2 working. I have some virtual hosts configured and working fine. I have setup one virtual host for webmail. The conf file is listed under:

<VirtualHost *:80>
DocumentRoot /var/www/webmail
ServerName mail.mydomain.ro
RedirectPermanent / https://mail.mydomain.ro
Include /etc/apache2/conf.d/ssl.conf
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/webmail/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

</VirtualHost>


And ssl.conf .. :


<IfModule mod_ssl.c>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/ssl/certs/webmail.crt
SSLCertificateKeyFile /etc/ssl/private/webmail.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

RewriteEngine on
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 2
RewriteCond %{SERVER_PORT} !443
#RewriteCond %{REQUEST_URI} ^/src/login.php <-- optional
RewriteRule (^.*$) https://mail.mydomain.ro [L,R=301]

</IfModule>


Now when I restart apache2 it 'fails'. The apache2 error.log doesn't write enything. What I'm doing wrong?

Pls help!
 
Old 07-30-2009, 09:10 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
What you mean by "when I restart apache2 it 'fails'."? Apache fails to restart, or it fails to go the ssl site.
Check rewrite_log, if you don't see anything in error_log
 
Old 07-30-2009, 11:35 AM   #3
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Unhappy

apache fails to restart.
the rewrite_log is empty.
 
Old 07-30-2009, 11:38 AM   #4
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
I've checked apache error.log and I found this: " Init: Multiple RSA server certificates not allowed" . What does it mean?
 
Old 07-30-2009, 12:08 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Quote:
SSLCertificateFile /etc/ssl/certs/webmail.crt
SSLCertificateKeyFile /etc/ssl/private/webmail.key
How did you create the certificate/key files?
Read this howto about apache-ssl in debian lenny.
 
Old 07-31-2009, 04:59 AM   #6
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
I've used that tutorial to create certifficates. The certificate file is ok.
I've searched in apache config files to check if there are more SSLCertificateFile dirrectives and I didn't found any.
 
Old 07-31-2009, 10:40 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Are you sure there are no other certs in the directory defined by SSLCertificateFile?
You can change Loglevel to debug in httpd.conf to see if you get more info about the error.
 
Old 08-03-2009, 04:13 AM   #8
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
I found this on http://bugs.debian.org

"
Reported by: Benoit Panizzon <panizzon@woody.ch>
Date: Fri, 17 Aug 2007 15:21:01 UTC
Severity: important
Tags: moreinfo
Found in version apache2/2.2.3-4+etch1
Done: Stefan Fritsch <sf@sfritsch.de>
Bug is archived. No further changes may be made.


Init: Multiple RSA server certificates not allowed

If I have more that one Virtualhost which uses certificates.

After some research with Google, this seams to happen to all debian users
wich have upgraded from apache2.0 to apache2.2.
No solution could be found.

Is there a fix to that problem?"
 
Old 08-03-2009, 10:30 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
I don't think it's a bug and if it was it should have been resolved by now since it's dated from 2007. Most probably there is something wrong configuration.
You can try to remove "RedirectPermanent / https://mail.mydomain.ro" and move "Include /etc/apache2/conf.d/ssl.conf" in the generic httpd.conf.
Also move the rewrite stuff from ssl.conf in the general httpd.conf. You don't need it inside the secure vhost.
Maybe you should create a ssl-vhost and put the ssl related directives inside it. Of course this must be done the debian way to create and enable vhosts in apache.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid: Everything working but HTTPS EricTRA Linux - Server 10 07-29-2009 02:50 AM
Webmail login not working jimble Linux - Software 1 09-22-2006 01:33 PM
IMP, got my webmail working Robert0380 LinuxQuestions.org Member Success Stories 9 01-21-2005 10:01 AM
How do I get Webmail working Wynand1 Linux - Networking 4 09-15-2004 08:41 AM
trying to get popmail/webmail working ocularbob Debian 16 09-30-2003 11:09 AM


All times are GMT -5. The time now is 06:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration