NAME
RT-Extension-DynamicWebPath - Dynamic WebPath
DESCRIPTION
This extension adds dynamic WebPath support to RT, each WebPath can have its own configurations.
This can be used to support different auth methods, e.g. "" for SSO and "/rt" for RT internal login.
RT VERSION
Works with RT 5 and RT 6.
INSTALLATION
perl Makefile.PLmakemake install-
May need root permissions
- Edit your /opt/rt6/etc/RT_SiteConfig.pm
-
Add this line:
Plugin('RT::Extension::DynamicWebPath'); - Clear your mason cache
-
rm -rf /opt/rt6/var/mason_data/obj - Restart your webserver
Configuration
Assuming "" is to use SSO, "/rt" is to use RT internal login:
Set( %DynamicWebPath,
'' => {
WebRemoteUserAuth => 1,
WebFallbackToRTLogin => 0,
},
'/rt' => {
WebRemoteUserAuth => 0,
WebFallbackToRTLogin => 1,
},
);
The corresponding configs are set automatically when RT detects WebPath changes by checking HTTP request URL.
In apache config, add the following directive before normal setup:
ScriptAlias /rt /opt/rt6/sbin/rt-server.fcgi/
Also remember to turn off SSO for /rt, e.g.
<LocationMatch "^/(rt|REST)(/|$)">
MellonEnable off
Require all granted
</LocationMatch>
AUTHOR
Best Practical Solutions, LLC <modules@bestpractical.com>
All bugs should be reported via email to bug-RT-Extension-DynamicWebPath@rt.cpan.org or via the web at rt.cpan.org.
LICENSE AND COPYRIGHT
This software is Copyright (c) 2022-2025 by Best Practical Solutions, LLC
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991