[rt-users] Two Annoying Messages in the logs
Kevin Falcone
falcone at bestpractical.com
Fri Jul 26 09:09:00 EDT 2013
On Fri, Jul 26, 2013 at 01:23:32PM +0100, Giles Coochey wrote:
> I run RT (upgraded to 4.0.15 today), but this is a small issue I've
> always had with my set up.
>
> I always get the following in my apache errorlogs:
You should get these once per process startup, yes?
> [Fri Jul 26 09:05:14 2013] [warning]: The requested port (80) does
> NOT match the configured WebPort (443). Perhaps you should
> Set($WebPort, 80); in RT_SiteConfig.pm, otherwise your internal
> links may be broken.
> (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:1232)
>
> [Fri Jul 26 09:05:14 2013] [warning]: The requested path (/ticket/)
> does NOT match the configured WebPath (/ticket). Perhaps you should
> Set($WebPath, '/ticket/'); in RT_SiteConfig.pm, otherwise your
> internal links may be broken.
> (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:1248)
>
> The first one is because RT sits behind a reverse proxy which strips
> SSL, therefore WebPort 443 is correct, as is setting the port to 80
> locally in the web server configuration. So the warning is wrong in
> this case.
>
> The second one seems to be required, rt moans about the configured
> WebPath missing the trailing slash, but I seem to remember that I
> needed to configure it this way to correctly get the reverse proxy
> to fix up the links in responses.
>
> Would be nice to somehow eliminate these warnings from a future
> release or RT.
What are you using to reverse proxy?
These warnings imply that you've got something which isn't passing any
headers that we would expect. In particular, if we detect proxying,
we don't do the second check.
You can see the relevant code and headers here:
https://github.com/bestpractical/rt/blob/stable/lib/RT/Interface/Web.pm#L1226
-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130726/49b7dc0d/attachment.sig>
More information about the rt-users
mailing list