Tweaking $host value

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


Hi,

When a user enters www.mysite.com, the value returned by nginx in
$host is "www.mysite.com",

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 www.mysite.com.

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





More information about the nginx mailing list