Custom Nginx Forbidden Page

Is there a way to customize the nginx page? Nginx would also denies access to my 403 error page! Can I override the access in the nginx.config with a location block specifically matching the 403 page with this code?

    error_page 403 /403.html;

    location = /403.html {
        root /path/to403pages;

        allow all;

Or can I edit the default server Nginx forbidden page?

You can just edit /home/{user}/web/{domain}/document_errors

And Set: Sync Error document templates on user rebuild to false in “Server → Configuration”

1 Like

Sorry if I confused you, but this is for when I block an IP with Nginx and it shows the 403.