[英]php_flag in .htaccess
I run an apache-server and I need just one php_flag to differ from the global configuration in a virtual host. 我运行一个apache-server,我只需要一个php_flag与虚拟主机中的全局配置不同。
I did not have a .htaccess file in that virtual hosts directory, so I just added it containing 我在该虚拟主机目录中没有.htaccess文件,因此我只添加了
php_flag flagname On
My httpd.conf contains 我的httpd.conf包含
<Directory "/path/to/host">
AllowOverride All
</Directory>
and I use the standard server API, not suPHP or anything 我使用标准的服务器API,而不是suPHP或其他任何东西
Anyway, phpinfo keeps telling me that the flag I set to On was still Off. 无论如何,phpinfo一直告诉我设置为On的标志仍然为Off。 The flag is suhosin.simulation, that one should be able to be set in .htaccess.
该标志是suhosin.simulation,应该可以在.htaccess中进行设置。
What am I missing? 我想念什么?
php_flag
can only set PHP_INI_ALL and PHP_INI_PERDIR type directives. php_flag
只能设置PHP_INI_ALL和PHP_INI_PERDIR类型指令。 You may need to use a php_admin_flag
within a <Directory xxxxxxxxxx>
</Directory>
scope in your vhost config. 您可能需要在vhost配置的
<Directory xxxxxxxxxx>
</Directory>
范围内使用php_admin_flag
。 You will need to restart Apache to latch this. 您将需要重新启动Apache来锁定它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.