Using ENV variables in configuration

#1
Hello, I'm using LiteSpeed/1.7.16 Open (BUILD built: Thu May 19 14:39:23 UTC 2022).

I have following lines in httpd_config.conf:

Code:
user                             ${USERNAME}
group                            ${GROUPNAME}
But it doesn't work as inteded:

2022-06-17 07:41:02.208730 [ERROR] [config:server:basics] Invalid User Name(${USERNAME}) or Group Name(${GROUPNAME})!

printenv:
Code:
USERNAME=10002
GROUPNAME=10002
According to https://www.litespeedtech.com/docs/webserver/config/general#apacheEnvVars it should work.
 
#2
"For shell environment variables used inside the Apache configuration file", it will not replace the env value to the OLS/LSWS config directly. Please set the value to the config file.
 
Top