Hi Bart,

On Thu, 10 Nov 2011, Bart wrote:

You could also try to redirect everything from port 80 to 443, this would
ensure that apache only touches RT once:

<VirtualHost *:80>
       ErrorLog /opt/rt4/var/log/apache2.error
       TransferLog /opt/rt4/var/log/apache2.access

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

Just out of curiosity: does the conditioning with

RewriteCond %{HTTPS} off

bring in some extra value in the above ? Why/when would it be necessary ?

Thanks,

Iosif Fettich
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  Barcelona, Spain  November 28 & 29, 2011

Reply via email to