• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question Custom 404 error page if you useing nginx

Dumitru

New Pleskian
how to create custom 404 page if we use - FPM application served by nginx
instead of File not found. message on page

404.jpg

I created custom 404.html page

I tried this:
----------------------------
In Additional directives for HTTP - add ErrorDocument 404 /404.html
not working
------------------------------
add in nginx.conf add this

server {
listen 80;
error_page 404 /404.html;
location /404.html {internal;}
}
not working
-----------------------------

any other idea ?
 
Yes Custom error documents checkbox is set
I try to open some missed files ex mydomen.com/extra.php
And in browser is showing: File not found.

in error_docs it isn't some file with this messages for example in not_found.html it is this text "The requested document was not found on this server."
if I change this docs the message is still the same File not found.

log files is showing nginx error - with message FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

nginx.png
 
Back
Top