How to put rewrite rules for multiple plone instances

Vishnu Kumar D R support at mahiti.org
Fri Jan 16 18:25:47 MSK 2009


Thanks Igor,

Its working

>
>
> Then you do not need this location:
>
>         location = / {
>            rewrite (.*) / last;
>        }
>
> at all.
>
> I look like a fool now.

Anyway, is this rewrite possible( for two domains server03.example.com and
klk.example.com)

if ($host ~* klk\.example\.com$) {
                location = / {
                    rewrite (.*) /Kolkata last;
                }
        }
location / {
            proxy_pass http://localhost:6081;
            include /usr/local/nginx/includes/proxy.conf;
        }

Meaning that for server03 no rewrite and for klk rewrite to /Kolkata
(since both domains are in same zope instance running behind varnish)
Or do i have to create separate server config for both domains


Thanks
Vishnu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090116/b9bd9c85/attachment.html>


More information about the nginx mailing list