Nevermind, I found a solution to my similar problem: http://forum.nginx.org/read.php?11,68480,68480by OpenHaus - Requests for Paid Services
This is actually fairly easy as soon as you learn of Embeddable Perl. Your nginx binary has to be configured with --with-http_perl_module to support Perl this way. Once that is done you can do something like that: http { perl_set $storage_path ' sub { my $r = shift; my $host = $r->header_in("Host");by OpenHaus - How to...
@kshaikh: Would you share how this was solved, please?by OpenHaus - Requests for Paid Services
Hello folks, half way through configuring nginx I ran into a challenge I did not find a solution for, yet. Your help is greatly appreciated! I want to use the name of a given (but not known as there are many) subdomain by extracting the first three characters of the subdomain to build a directory path, e.g. an user requested to access http://world.wide.com/web.html. The file web.html now resideby OpenHaus - How to...