How to put rewrite rules for multiple plone instances

Maxim Dounin mdounin at mdounin.ru
Wed Jul 1 18:28:37 MSD 2009


Hello!

On Wed, Jul 01, 2009 at 02:18:05PM +0200, Mahiti Support wrote:

> Igor Sysoev wrote:
> > On Wed, Jan 28, 2009 at 03:56:53PM +0530, Vishnu Kumar D R wrote:
> > 
> >> Hi Igor,
> >> 
> >> Let me make it to the point
> >> 
> >> whats the nginx equivalent for the statement in apache2?
> >> RewriteRule ^/(.*)
> >> http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P]
> > 
> > location / {
> >     proxy_pass 
> > http://127.0.0.1:8080/VirtualHostBase/http/$host:80$request_uri;
> > }
> 
> Hi Igor,
> 
> Then what is it for
> RewriteRule ^/(.*) 
> http://127.0.0.1:8050/VirtualHostBase/http/%{HTTP_HOST}:80/live/automiddleeast/VirtualHostRoot/$1 
> [L,P]

Sorry, I'm not Igor, but probably something like

    location / {
        proxy_pass http://127.0.0.1:8050/VirtualHostBase/http/$host:80/live/automiddleeast/VirtualHostRoot$request_uri;
    }

will work for you.

Maxim Dounin





More information about the nginx mailing list