How to put rewrite rules for multiple plone instances
Vishnu Kumar D R
vishnu.kumar at mahiti.org
Sat Jan 17 09:32:42 MSK 2009
On Fri, Jan 16, 2009 at 9:10 PM, Igor Sysoev <is at rambler-co.ru> wrote:
> This rewrite:
>
> if ($host ~* klk\.example\.com$) {
> location = / {
> rewrite (.*) /Kolkata last;
> }
> }
>
> is not possible, but this one:
>
> location = / {
> if ($host ~* klk\.example\.com$) {
> rewrite (.*) /Kolkata last;
> }
> }
>
> is possible. However, it's much better to create separate server for every
> non-generic server, then to write a lot of if/rewrite's.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
Thank you very much Igor,
I have gained some expertise in Nginx :)
Also, How do we make rewrite invisible to viewers, cause the rewrite is
visible for every link in the site klk.example.com.
Vishnu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090117/e2cfec54/attachment.html>
More information about the nginx
mailing list