I’m using Zola for the first time where I am deploying using Nginx behind a Haproxy reverse proxy.
I’m using the Deepthought theme as a result of watching the Jamstack YouTube videos.
My site works fine via zola serve but when deployed via Haproxy I get a problem.
When I request for example, https://zola.mydomain.uk/about/ I get a 301 request where the Nginx instance returns, https://zola.mydomain.uk:1234/about/ where the 1234 is the port number set in Nginx and used by the Backend in Haproxy.
If I change my theme to Tabi, this problem goes away.
I can mitigate the Deepthought issue by modifing the http-response in the Haproxy backend, thus:-
backend be_zolawebsite
mode http
http-response set-header location %[res.hdr(location),regsub(:1234/,/)] if { res.hdr(location) -m found }
server svr_zolawebsite localhost:1234 ssl verify none
My diagnosis seems to imply this is theme related, and a 301 request seems odd for an internal website page change.
I notice that Deepthought has not been updated for 3 years, whereas Tabi has been released in 2025, with an update last week.
Would I be advised to use the younger theme?
Is the use of a 301 for a page change usual for Zola websites?
Otherwise, is there some sort of interaction I’m not aware of for Zola & Deepthought?
Thanks