textpattern / server-config

Configuration files for Textpattern project servers.
The Unlicense
2 stars 2 forks source link

Forum error documents not working #47

Open philwareham opened 5 years ago

philwareham commented 5 years ago

We need to replicate the old forum .htaccess rules in the new Nginx config - previous rules as follows:

ErrorDocument 401 "401"
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

Currently any errors are just bringing up the homepage, which is not desired.

petecooper commented 5 years ago

Will sort - thanks for the heads up.

petecooper commented 5 years ago

This is an interesting one, and I will need to investigate further later on. I've done the groundwork for the custom error files in https://github.com/textpattern/server-config/commit/a5f532c07bb933d6490c0b6502fac86023abc247 and https://github.com/textpattern/server-config/commit/1f4f0ff9909b864de3fcedef3bbf2f9a93cbd43d but it's not taking properly. Syntax looks OK, and I wonder if it's related to the error handling on the fluxBB side of things. I should have some time after 8pm tonight, will check back then.

Edit: still working on this.