Hey guys,
Could somebody tell me how I would set the “root”-Variable based up on
the contents of the Host: Header?
I have a host header like this: 345232.user.domain.net
I would like to construct a root like this: /www/345232
Thanks,
Samy
Hey guys,
Could somebody tell me how I would set the “root”-Variable based up on
the contents of the Host: Header?
I have a host header like this: 345232.user.domain.net
I would like to construct a root like this: /www/345232
Thanks,
Samy
Hello!
On Sun, Oct 19, 2008 at 11:00:06PM +0200, Samuel Vogel wrote:
Hey guys,
Could somebody tell me how I would set the “root”-Variable based up on
the contents of the Host: Header?
I have a host header like this: 345232.user.domain.netI would like to construct a root like this: /www/345232
Something like:
set $subdir "default";
if ($host ~ "^(.+)\.user\.domain\.net$") {
set $subdir $1;
}
root /www/$subdir;
should work.
Maxim D.
Am 19.10.2008 23:38 Uhr, Maxim D. schrieb:
should work
Thanks!
Regards,
Samy
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs