Ah then you need something like this:
map $host $dswcname {
default "www";
~smartgrids "smartgrids";
[...]
}
server {
listen 80;
server_name .site.eu;
[...]
root /home/hifolio/public_html/$dswcname;
[...]
map $host $dswcname {
default "www";
~smartgrids "smartgrids";
[...]
}
server {
listen 80;
server_name .site.eu;
[...]
root /home/hifolio/public_html/$dswcname;
[...]