• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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