指定php_value error_log的相对路径

时间:2021-10-21 11:04:38

Rather than put the absolute path to an error_log in my .htaccess, i would like to find a way to specify it relative ot the .htaccess file (or similar):

而不是将绝对路径放在我的.htaccess中的error_log中,我想找到一种方法来指定它相对于.htaccess文件(或类似):

php_value error_log %{DOCUMENT_ROOT}/libs/log/error/PHP_errors.log

Would be something like i would want to do, but this doesn't seem to work. If I specify the absolute, it does work.

会像我想做的那样,但这似乎不起作用。如果我指定绝对值,它确实有效。

1 个解决方案

#1


4  

What happens if you set it to ./path/error.log?

如果将其设置为./path/error.log会发生什么?

#1


4  

What happens if you set it to ./path/error.log?

如果将其设置为./path/error.log会发生什么?