zope/plone cache rewrite rules?

Alexis Torres Garnica gaper at jornada.com.mx
Tue Jan 1 00:45:22 MSK 2008


Hi guys, I have problems porting this apache mod_rewrite rules to nginx 
rewrite rules, I have a zope server who talk with squid (configured like 
a reverse proxy), infront the squi we have apache2, the arch is this:

people -> request -> apache -> squid -> zope

we wanna replace apache with nginx, the actual apache rewrite rules are 
this for http://domain/ultimas:

    RewriteRule ^/ultimas(.*)/$ 
http://127.0.0.1:8080/http/%{SERVER_NAME}/80/ultimas$1 [L,P]
        RewriteRule ^/ultimas(.*) 
http://127.0.0.1:8080/http/%{SERVER_NAME}/80/ultimas$1 [L,P]


This is for the virtual host called migarcion

        RewriteCond %{REQUEST_FILENAME}  .*jpg$|.*gif$|.*png$ [NC]
        RewriteCond %{HTTP_REFERER}  !^$
        RewriteCond %{HTTP_REFERER}  !migracion\.jornada\.unam\.mx [NC]
        RewriteRule ([0-9]{4})/([0-9]{2})/([0-9]{2})/?(.*) 
http://%{SERVER_NAME}/showpic.php?pic=$1/$2/$3/$4  [L]

This is for one virtual host called ciencias

        RewriteCond %{REQUEST_FILENAME}  .*jpg$|.*gif$|.*png$ [NC]
        RewriteCond %{HTTP_REFERER}  !^$
        RewriteCond %{HTTP_REFERER}  !ciencia\.jornada\.unam\.mx [NC]
        RewriteRule ([0-9]{4})/([0-9]{2})/([0-9]{2})/?(.*) 
http://%{SERVER_NAME}/showpic.php?pic=$1/$2/$3/$4  [L]

a lot of tnks for your help :D

att: gap





More information about the nginx mailing list