[rt-users] RT and Apache rewrite
Jared Honey
jhoney at systemsfusion.com
Tue Feb 20 09:27:48 EST 2007
Hi All
I've just finished setting up RT on Solaris. I initially went the
mod_perl route but hit a dead end and decided to go with FastCGI.
Well it was easy enough to get running using FastCGI but now I've run
into a little problem.
My problem is that I have created an alias called /rt3/ and a
redirect to that alias. I can log in but every other link in RT is
not linked into that alias so they don't work ie Confiuration will
open rt.server.co.za/Admin but I want it to open rt.server.co.za/rt3/
Admin. I've tried to create an Apache rewrite rule to rewrite
everything for / to /rt3/ but this isn't working. Any help would be
great.
This is my Apache config:
FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi -idle-timeout 120
<VirtualHost rt.server.co.za:80>
ServerAdmin noc at systemsfusion.com
ServerName rt.server.co.za
DocumentRoot /usr/local/rt3/share/html/
ErrorLog logs/rt.server.co.za-error_log
CustomLog logs/rt.server.co.za-access_log common
<Directory /usr/local/rt3/share/html>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
RedirectMatch ^/$ /rt3/
RewriteEngine on
RewriteRule ^/(.*)$ /rt3/$1 [L,R,NC]
</Directory>
ScriptAlias /rt3/ /usr/local/rt3/bin/mason_handler.fcgi/
AddHandler fastcgi-script fcgi
Alias /NoAuth/images/ /usr/local/rt3/share/html/NoAuth/images/
</VirtualHost>
Is there perhaps an easier way to change these links?
Thanks,
Jared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070220/ed5f4aee/attachment.htm>
More information about the rt-users
mailing list