how to show nginx 403 forbidden instead of xml access denied message in digitalocean spaces acess denied?

Posted March 17, 2020 893 views
NginxBlock Storage

i have setup spaces and cdn with custom domains and files permission. the one thing that annoy me is the xml access denied message of spaces access denied. how to change this page so that whenever access denied is occurred, nginx would show the nginx 403 forbidden instead of default xml access denied message.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


What you could suggest doing is to manage this on application level rather than relaying on your webserver to handle this.

Have you managed to get a solution for this?