[rt-users] Want to have /rt instead of /rt/
Ruslan Zakirov
ruslan.zakirov at gmail.com
Tue Sep 20 09:33:27 EDT 2005
On 9/20/05, Tobias.Warth at hp.com <Tobias.Warth at hp.com> wrote:
>
> I configured RT 3.4.4 with Apache httpd 2.0.54 and FastCGI 2.4.2.
>
> If I type http://hostname/rt in my Browser I get the Login Form. After
> logging in I'm redirected to http://hostname/index.html instead of
> http://hostname/rt/index.html
>
>
> If I type http://hostname/rt/ everything works, but our customer don't
> want to have the trailing '/'.
>
>
> How can I do this?
>
>
>
> httpd.conf:
> AddHandler fastcgi-script fcgi
> ScriptAlias /rt /apps/opt/rt/current/bin/mason_handler.fcgi
> Alias /NoAuth/ /apps/opt/rt/current/share/html/NoAuth/
> <Directory "/apps/opt/rt/current/share/html">
> DirectoryIndex index.html
> Options FollowSymLinks ExecCGI
> AllowOverride None
> </Directory>
Right thing would be to use:
<Directory "/apps/opt/rt/current/share/html">
# note: DirectorySlash disables DirectoryIndex directive
DirectorySlash On
# RT should handle directory indexes itself
# but if it doesn't work(IMHO in this case RT bug) uncomment next string
# RewriteRule ^(.*)/$ $1/index.html
Options FollowSymLinks ExecCGI
AllowOverride None
</Directory>
Tobias, could you test this? RT should work without mod_rewrite.
> FastCgiIpcDir /tmp
> FastCgiServer /apps/opt/rt/current/bin/mason_handler.fcgi -idle-timeout
> 120 -processes 4
>
>
> RT_SiteConfig.pm:
> Set($WebPath , "/rt");
> Set($WebBaseURL , "http://hostname:80");
> Set($WebURL , $WebBaseURL . $WebPath . "/");
>
>
>
> Regards,
>
> Tobias Warth
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
> Buy your copy of our new book, RT Essentials, today!
>
> Download a free sample chapter from http://rtbook.bestpractical.com
>
--
Best regards, Ruslan.
More information about the rt-users
mailing list