[rt-users] webkit browser lose session only when viewing Attachment

Allen allen+rtlist at crystalfontz.com
Thu Dec 3 17:03:09 EST 2009


For future readers, to make it so that requests for objects above the
$WebPath directory (like /favicon.ico, when WebPath is "/rt") do not
trash the current session, I changed the RT installation so that it
runs from the root directory of a subdiomain (rt.example.com) instead
of a subdirectory (example.com/rt).


Changes to Apache config files:

/etc/apache2/sites-available/rt.example.com:
insecure vhost container:
+ backwards compat for anyone with old links to subdir:
+ RewriteEngine on
+ RewriteCond %{REQUEST_URI} ^/rt(.*)
+ RewriteRule .* http://rt.example.com%1 [R]
- Alias /rt /usr/share/request-tracker3.8/html
- <Location /rt/REST/1.0/NoAuth>
+ <Location /REST/1.0/NoAuth>
same changes to secure vhost container except rewrite redirects to httpS

/etc/request-tracker3.8/apache2-modperl2.conf:
-RewriteRule ^/rt$ /rt/
-RewriteRule ^/rt/(.*)$ /usr/share/request-tracker3.8/html/$1
-<Location /rt/REST/1.0/NoAuth>
+<Location /REST/1.0/NoAuth>

/etc/request-tracker3.8/RT_SiteConfig.d/50-debconf
Set($WebPath , "/rt");
Set($WebPath , "");



More information about the rt-users mailing list