2 messages in ru.sysoev.nginxTweaking $host value
FromSent OnAttachments
ThomasSep 18, 2008 10:12 am 
ThomasSep 18, 2008 12:33 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Tweaking $host valueActions...
From:Thomas (iamk@gmail.com)
Date:Sep 18, 2008 10:12:45 am
List:ru.sysoev.nginx

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?