I have a config file that look like this:
server {
listen 80;
server_name ~^(?<folder>[^.]+).(?<user>[^.]+).example.com;
charset utf-8;
index index.php index.html index.htm;
root /var/www/projects/dev/$user/$folder/htdocs;
...
}
so i can access to the site with a url like test.user.example.com.
In one server the config file is working as expected but in other server the variables are void.
Any idea ?