目前,我有两个页面在开发中,但不在生产中。amazonaws.com/This is the default index.html page that is distributed with nginx on the Amazon LinuxThis is the default 404 error page for nginx that is distributed with the Amazon Linux AMI.error_page 500 502 503 504 /500.html;
clien
当我开发Django网站时,我总是在互联网上的服务器上开发它们,以便镜像我的生产环境(我在本地运行macOS,但我的服务器是Linux)。在开发过程中,我还会出于调试目的而设置DEBUG = True。问题是,如果我或其他任何人在我的网站上输入了无效的URLconf字符串,Django就会显示"Page not found (404)“页面以及所有有效的URLconf模式,我觉得这有点安全风险。当我将DEBUG设置为True时,有没有办法禁止显示此特定的错误<