3 messages in ru.sysoev.nginxRe: Setting root based on Host: header
FromSent OnAttachments
Samuel VogelOct 19, 2008 1:59 pm 
Maxim DouninOct 19, 2008 2:38 pm 
Samuel VogelOct 20, 2008 4:57 am 
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:Re: Setting root based on Host: headerActions...
From:Samuel Vogel (samy@gmail.com)
Date:Oct 20, 2008 4:57:54 am
List:ru.sysoev.nginx

Am 19.10.2008 23:38 Uhr, Maxim Dounin schrieb:

Something like:

set $subdir "default";

if ($host ~ "^(.+)\.user\.domain\.net$") { set $subdir $1; }

root /www/$subdir;

should work

Thanks!

Regards, Samy