Apache 2.4 + PHP-FPM, catching error pages

后端 未结 2 1498
我寻月下人不归
我寻月下人不归 2021-01-13 11:48

Here is my vhost file:

 
   ServerName awesome.dev

   ## Vhost docroot
   DocumentRoot \"/var/www/awesome\"

   ## Directories, ther         


        
2条回答
  •  春和景丽
    2021-01-13 12:19

    I used to have the same problem and finally I fixed it.

    Try add this after ProxyPassMatch setting:

    ProxyErrorOverride on
    

    BTW, do not forget your

    ErrorDocument 404 /path/to/file
    

    setting.

提交回复
热议问题