However I use this url as my test to trigger an error 500 (because I have no sitemap). No use of the custom template. https://www.mydomain.test/sitemap.xml
When I add item to: /trellis/nginx-includes/all/ such as my error-templates.conf.j2. Where does the contents of this end up on the server? Can’t find it in /etc/nginx/sites-enabled/ so far, but considering the /testing method worked, it must be somewhere.
I am re-provisioning after any change to the error-templates.conf.j2 too.
@JordanC26 did you get anywhere with this? I’m currently having issues trying to set up the same.
The contents of the templates you add end up in /etc/nginx/includes.d/includes.d/example.com/ and then included in /etc/nginx/sites-enabled/example.com.conf. I just can’t get a 500 or 503 error template working.