Zend SetEnv in .htaccess not working

前端 未结 5 1409
有刺的猬
有刺的猬 2021-02-08 05:07

I installed Zend on my ubuntu homeserver. In my .htaccess file i have the following code:

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteCond %{REQU         


        
5条回答
  •  萌比男神i
    2021-02-08 05:46

    In order to use SetEnv within a .htaccess file, I believe you need to set...

    AllowOverride FileInfo
    

    ...within the relevant virtualhost directory block. (And then restart the httpd service as per usual.)

    Additionally, depending on how you're running PHP, it's possible that such information is being stripped out. (e.g.: suexec will effectively remove all non-HTTP* environment vars.)

提交回复
热议问题