I had some issue redirecting 404 errors to my 404.php file using apache2 with fastcgi proxy pass, it was displaying , “File not found.” instead my 404 error page setup in htaccess ,  i have searched a lot on the internet until i found out that there is actually a ProxyErrorOverride option for the fastcgi  that you can setup on httpd config file.

This fixed my issue and allowed me to setup a 404 page .


<VirtualHost *:80>

---------- content --------

DocumentRoot /home/user/public_html/domain.tld

#this disables php execution if you wish to show only html files
#ProxyPass /errors !

ProxyErrorOverride On
# /errors folder is located in public_html
ErrorDocument 404 /errors/404.php



Keep it real ,
Best Regards ,Alin Razvan
I'm a small fish in a big ocean , trying to make a difference and some waves while swimming my way through .