简体   繁体   English

Apache:Apache日志中此处不允许使用SetEnv

[英]Apache : SetEnv not allowed here in apache logs

I have problems to launch a web application : i get the following error : 我在启动Web应用程序时遇到问题:出现以下错误:

C:/wamp/www/dev/htdocs/.htaccess: SetEnv not allowed here

Does anyone know how to fix this ? 有谁知道如何解决这一问题 ? thanks in advance 提前致谢

In order to use SetEnv within a .htaccess file, you need to set... AllowOverride FileInfo ...within the relevant virtualhost directory block. 为了在.htaccess文件中使用SetEnv,您需要在相关的virtualhost目录块中设置... AllowOverride FileInfo ...。 (And then restart the httpd service as per usual.) (然后照常重新启动httpd服务。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM