Tweaking $host value

Thomas iamkenzo at
Thu Sep 18 21:13:08 MSD 2008


When a user enters, the value returned by nginx in
$host is "",

If I use this in my root declaration such as:

root /var/www/$host;

This means that I must rename my folder on disk as

Is there a way so that $host, returns only?

More information about the nginx mailing list