[rt-users] Getting Request Tracker to stick to HTTPS

Darin Perusich Darin.Perusich at ctg.com
Wed May 16 12:27:08 EDT 2012


On 05/16/2012 11:20 AM, Giles Coochey wrote:
>
> How can I force RT to HTTPS?
>

Have you tried use mod_rewrite to rewrite the all traffic for that 
virtual host to https?

Stubs of the config's for your RT virtual host. They http vhost only 
needs to have the basic's defined, the rewrite rules will push 
everything to https.

<VirtualHost x.x.x.x:80>
...
...
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule  ^/(.*)    https://%{SERVER_NAME}/$1 [L,R=301]
</VirtualHost>

<VirtualHost x.x.x.x:443>
...
...
    <Location />
      Order allow,deny
      Allow from all
      SetHandler modperl
      PerlResponseHandler Plack::Handler::Apache2
      PerlSetVar psgi_app /usr/sbin/rt-server
    </Location>

    <Perl>
      use Plack::Handler::Apache2;
      Plack::Handler::Apache2->preload("/usr/sbin/rt-server");
    </Perl>
...
...
</VirtualHost>

-- 
Darin Perusich
Email: Darin.Perusich at ctg.com
Office: 716-888-3690
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you are not the intended recipient of this 
message, please contact the sender and delete this material from this computer.




More information about the rt-users mailing list