I need to use a different PHP php_value include_path
for each subdomain. The problem ist, that the subdomains are depending on the folders I have:
<VirtualHost *:443>
ServerName subdomain.domain.com
ServerAlias *.subdomain.domain.com
VirtualDocumentRoot "/var/www/subdomains/%1"
</VirtualHost>
So I tried to save the current subdomain as a variable:
SetEnvIf Host "^([^.]*).subdomain.domain.com$" SUBDOMAIN=$1
Define CURR %{ENV:SUBDOMAIN}
php_value include_path ".:/var/www/subdomains/${CURR}/php"
But the content of CURR
is "%{ENV:SUBDOMAIN}
". Is it possible to use Define
to get an env variable, which will work for php_value
?