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

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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?