• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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