Hi, I need to forward 404 errors to a php script file to handle the request, as I'm working with virtual pages. The php script searches the database for the seeked page. When found create the output or, if not found, the own error page. So I disabled "Own Error Documents" in Site configuaration and placed this in nginx Directives of the Site: error_page 404 /404; location ~ \.php$ { fastcgi_intercept_errors on; try_files $uri /404.php; root /var/www/clients/client1/web1; internal; } But still the nginx error page is returned, instead of forwarding the request to 404.php. This is the server configuration: - Debian 10 Server - ISPConfig 3.2.4 nginx 1.14.2 Thanks in advance for any help to solve the problem.
You can customize most error page(s) with ISPConfig but I am not sure how to catch and pass that to a php script and I am currently so lazy to search on that.