Problem with using ssl over nginx reverse-proxy when submitting ticket updates

Hi all,

I’m trying to run RT 3.8 over ssl via an nginx reverse-proxy, and almost
everything works, except when you update a ticket; after you click
“Update Ticket”, after the update is submitted, it redirects
Display.html to show the updated ticket. However, it is redirecting to
plain http, which results in an error because I’m intentionally NOT
proxying port 80…

I have set $WebBaseURL in RT_SiteConfig.pm to include “https://” at the
beginning.

I apologise in advance - I’ve also posted this query on #rt on irc.perl.org.

Any ideas, please?

Andy D’Arcy Jewell

SysMicro Limited
Linux Support
T: 0844 9918804
M: 07961605631
E: andy.jewell@sysmicro.co.uk
W: www.sysmicro.co.uk

Hi Andy,

A very simular issue to this was discussed on the list last week. Have
a search for https “redirects to http”.

Best Regards

MartinOn 2013-01-15 11:24, Andy D’Arcy Jewell wrote:

Hi all,

I’m trying to run RT 3.8 over ssl via an nginx reverse-proxy, and
almost everything works, except when you update a ticket; after you
click “Update Ticket”, after the update is submitted, it redirects
Display.html to show the updated ticket. However, it is redirecting
to
plain http, which results in an error because I’m intentionally NOT
proxying port 80…

I have set $WebBaseURL in RT_SiteConfig.pm to include “https://” [1]
at the beginning.

I apologise in advance - I’ve also posted this query on #rt on
irc.perl.org.

Any ideas, please?


Andy D’Arcy Jewell

SysMicro Limited
Linux Support
T: 0844 9918804
M: 07961605631
E: andy.jewell@sysmicro.co.uk
W: www.sysmicro.co.uk

!DSPAM:9,50f5355e33231878918082!

Links:

[1] https://

Hi Andy,

A very simular issue to this was discussed on the list last week. Have
a search for https “redirects to http”.

Best Regards

Martin
You are quite right, Martin!

The fix is to insert the following into RT_SiteConfig.pm:

Set($CanonicalizeRedirectURLs, 1);

Thank you very much - tested and approved!

Regards,
-Andy

Andy D’Arcy Jewell

SysMicro Limited
Linux Support
T: 0844 9918804
M: 07961605631
E: andy.jewell@sysmicro.co.uk
W: www.sysmicro.co.uk