FastCGI problem

Yordan Georgiev y.georgiev at
Mon Mar 24 22:27:01 MSK 2008


I create vhost rule for my nginx:

if ($host ~* "([^\/]+)\.([^\.\/]+\.[^\.\/]+)" ) {
          set $root /www/$2/$1/root;
root $root;

BUT... I open domein.tld receive error 403. Howto rewrite domein.tld to
www.domein.tld with little resources?
My hostring tree is:
/www/domein.tld/sub1/root - for sub1.domein.tld
/www/domain.tld/www/root - for www.domein.tld and domein.tld
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list