Remove RT footer for some file


I have a txt file placed in the DocumentRoot of the RT, with a verification code and I need to remove the footer generated by RT (see the screenshoot below) , because the application that needs to check that code in the txt file, sees the contents of the file as changed due to the footer generated by RT. I know that the Footer file is in the /opt/rt4/share/html/Elements directory, but I want to know if there is a cleaner way I can remove the footer



Depending on your set up, you might be need to tell the web server not to pass this particular file to the FCGI setup for RT. For example if you’re using Apache, instead of something like:

ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
DocumentRoot "/opt/rt4/share/html"

you might want to replace the ScriptAlias with a ScriptAliasMatch statement that has a regex that excludes this particular file.

Thanks for the help @GreenJimll , I’ve managed to solved the problem with ScriptAliasMatch

1 Like