Skip to main content

Getting file not found vs 404 with PHPFPM

Comments

3 comments

  • cPanelMichael
    Hello, I believe the Apache option you are looking for is "ProxyErrorOverride": mod_proxy - Apache HTTP Server Version 2.4 You can turn this option on with a line such as this under the "Pre Main Include" section in "WHM Home " Service Configuration " Apache Configuration " Include Editor":
    ProxyErrorOverride on
    Thank you.
    0
  • billmcollam
    Thanks Michael. I had read about that as a possible fix but was having challenges overriding the vhost configuration. But since it could apply to all vhosts... your suggestion was perfect. It worked fine. Many thanks.
    0
  • PeteS
    Also, please include the 'PoxyErrorOverride On' code in the Post VirtualHost Include. It sometimes breaks WebMail as listed in the thread SOLVED - "File not found." instead of custom 404 file with php-fpm enabled.

    Update: this solution is intermittently not working. Possibly a cPanel update made a change? I'm pursuing it in the other thread.
    0

Please sign in to leave a comment.