1. The problem I’m having:
I’m testing if caddy can replace our apache server with caddy and my only problem now is to get variables injected into the caddy server as envrionment variables that I can use in php files.
Currently I managed to create a test var
php_fastcgi unix//run/php/php7.4-fpm.sock {
env testvariable 'hello'
}
When I check the php info I can see the variable but it appears under VARIABLES and not under ENVIRONMENT. How can I inject variables that appears under ENVIRONMENT in php info?
This is not the place where I expected and “env” var to appear. Maybe I’m missing out on something. Thanks
$_SERVER[‘testvariable’]
2. Error messages and/or full log output:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
3. Caddy version:
4. How I installed and ran Caddy:
a. System environment:
b. Command:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.