FastCGI problem

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


Hello,

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
/www/domein.tld
/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: <http://nginx.org/pipermail/nginx/attachments/20080324/90012509/attachment.html>


More information about the nginx mailing list