Re: HTTPS for login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



IT-Support@AStA TU Darmstadt wrote:
> Hello squirrelmail-community,
>
> I've installed & configured squirrelmail on debian linux (etch/testing)
> with apache2 and so far it works fine! :-)
> What I want to do now, is to secure the login process.
> The manual tells about the "RedirectPermanent" option that I already use
> for mailman and I would prefer this option.
> The problem is, that configuring apache with "RedirectPermant" for
> squirrelmail-login obviously cause a loop and the browser hangs. Why?
> With mailman it works fine?
> I'd like to avoid using mod_rewrite.
>
> Any ideas?

If you have control over the apache config... I found this to be very 
effective:

I added the following to the squirelmail.conf file and restarted apache
(On my system that's in /etc/httpd.conf.d directory)

<Location ~ /webmail>
RewriteEngine   on
RewriteCond     %{HTTPS} !=on
RewriteRule     .* https://%{SERVER_NAME}/webmail/ [R,L]
</Location>


This means that if you connect to squirrelmail as "http:// ...." it 
automatically "switches over" as if you had used https...

I find this is very simple, effective and easily understood. :-)

I like it because I would enter the domain/path without a scheme (http 
vs https), see a non-secure page, then re-enter the url WITH a scheme... 
now can can still use my bad habits (omitting scheme) and my server 
"does the right thing". :-)

I also like it because it is a "general solution", easily used for other 
directories.... and I feel it's better to have this sort of thing at 
"the server level" than at the "application level".

Don Russell

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux