From welch.chris at gmail.com Sat Oct 2 13:35:32 2021 From: welch.chris at gmail.com (Chris Welch) Date: Sat, 2 Oct 2021 14:35:32 +0100 Subject: [Catalyst] $c->uri_for and $c->uri_for_action ignoring https Message-ID: Hi everyone In my infinite(!) wisdom, I decided to do a complete server rebuild before people will start using my website again next month. This previously was working correctly, however now even though the page is being served over https, all the links (which use $c->uri_for and $c->uri_for_action) are returning http versions, which is causing the style sheets to fail to load for one thing, but also form submissions are going over http. Some things that may be pertinent: - Using nginx / Starman (same as before). - This is using a letsencrypt certificate, which it was before, but when I set it up before there wasn't a certbot to automate it, so it was done manually. - Website in case it's useful: https://www.mkttl.co.uk/ - Catalyst version is now the latest - previously I *think* it was 5.90118, but unfortunately can't be sure. Thank you in advance for any suggestions! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob at intelcompute.com Sat Oct 2 15:05:56 2021 From: rob at intelcompute.com (Robert Brown) Date: Sat, 2 Oct 2021 15:05:56 +0000 Subject: [Catalyst] $c->uri_for and $c->uri_for_action ignoring https In-Reply-To: References: Message-ID: <0102017c418a5023-c5e460f9-dc08-4c67-b57a-890423ed317a-000000@eu-west-1.amazonses.com> My first thought is... https://metacpan.org/pod/Catalyst#PROXY-SUPPORT On 02/10/2021 14:35, Chris Welch wrote: > Hi everyone > > In my infinite(!) wisdom, I decided to do a complete server rebuild > before people will start using my website again next month. This > previously was working correctly, however now even though the page is > being served over https, all the links (which use $c->uri_for and > $c->uri_for_action) are returning http versions, which is causing the > style sheets to fail to load for one thing, but also form submissions > are going over http. > > Some things that may be pertinent: > > * Using nginx / Starman (same as before). > * This is using a letsencrypt certificate, which it was before, but > when I set it up before there wasn't a certbot to automate it, so > it was done manually. > * Website in case it's useful: https://www.mkttl.co.uk/ > > * Catalyst version is now the latest - previously I *think* it > was?5.90118, but unfortunately can't be sure. > > Thank you in advance for?any?suggestions! > > > Chris > > _______________________________________________ > List: Catalyst at lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst at lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From welch.chris at gmail.com Sat Oct 2 23:31:37 2021 From: welch.chris at gmail.com (Chris Welch) Date: Sun, 3 Oct 2021 00:31:37 +0100 Subject: [Catalyst] $c->uri_for and $c->uri_for_action ignoring https In-Reply-To: References: Message-ID: Apologies, I have sorted this - I must have forgotten that I had set the using_frontend_proxy option and then set the X-Forwarded-Port header on nginx before. On Sat, 2 Oct 2021 at 14:35, Chris Welch wrote: > Hi everyone > > In my infinite(!) wisdom, I decided to do a complete server rebuild before > people will start using my website again next month. This previously was > working correctly, however now even though the page is being served over > https, all the links (which use $c->uri_for and $c->uri_for_action) are > returning http versions, which is causing the style sheets to fail to load > for one thing, but also form submissions are going over http. > > Some things that may be pertinent: > > > - Using nginx / Starman (same as before). > - This is using a letsencrypt certificate, which it was before, but > when I set it up before there wasn't a certbot to automate it, so it was > done manually. > - Website in case it's useful: https://www.mkttl.co.uk/ > - Catalyst version is now the latest - previously I *think* it > was 5.90118, but unfortunately can't be sure. > > Thank you in advance for any suggestions! > > > Chris > -------------- next part -------------- An HTML attachment was scrubbed... URL: