Create custom 404 page
Create a custom 404 Not Found page in Nginx. By the way, 410 too.
server {
listen 80;
server_name 'ast.qt-space.com';
error_page 404 /static/onepage/custom_404.html;
error_page 410 /static/onepage/custom_410.html;
location '/static/' {
alias /home/simple_db/static/;
}
location / {
return 404;
}
}