Apache won't set headers for PHP script

后端 未结 1 984
梦毁少年i
梦毁少年i 2020-12-11 09:10

This .htaccess file:


    ExpiresActive On
    ExpiresDefault \"access plus 4 month\"



        
相关标签:
1条回答
  • 2020-12-11 09:18

    If PHP is running via mod_proxy_fcgi there might be no filesystem directory involved, hence no htaccess lookup can occur.

    There is a more recent flavor of php+mod_proxy_fcgi now documented in the manual that uses SetHandler instead of ProxyPass -- that allows things like htaccess to be processed because the core actually looks up the URL in the filesystem as a first step.

    0 讨论(0)
提交回复
热议问题