LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] more https woes

[ILUG] more https woes

Gavin McCullagh gmccullagh at gmail.com
Sun Apr 9 20:37:03 IST 2006


On Sun, 09 Apr 2006, Bernhard Rohrer wrote:

> I am trying to do a redirect from http to https
> 
> OS is Ubuntu Hoary, Apache2.0.53
> 
> the redirect looks like this:
> 
>      redirect permanent http://www.sm-wg.net/sql-ledger 
> https://www.sm-wg.net/sql-ledger
>      Alias /sql-ledger /opt/sql-ledger/
> 
> the alias works, so mod_alias seems to work. no error messages, nothing.

The debian squirrelmail package offers a solution to this using mod_rewrite
as follows:

/etc/squirrelmail/apache.conf:

# redirect to https when available (thanks omen at descolada.dartmouth.edu)
#
#  Note: There are multiple ways to do this, and which one is suitable for
#  your site's configuration depends. Consult the apache documentation if
#  you're unsure, as this example might not work everywhere.
#
#<IfModule mod_rewrite.c>
#  <IfModule mod_ssl.c>
#    <Location /squirrelmail>
#      RewriteEngine on
#      RewriteCond %{HTTPS} !^on$ [NC]
#      RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
#    </Location>
#  </IfModule>
#</IfModule>

Gavin




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell