On 01-dic-08, at 15:11, Angel Berríos Dávila wrote:

> I am experimenting with cherokee as a front end to Plone (Zope) web
> server.
>
> In Apache I achieved that by giving the following rule to the virtual
> host conf:
>
> RewriteEngine on
> RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/ 
> {PLONE_SITE_ID}/VirtualHostRoot/$1 [L,P]

I don't think you want to redirect the request but make the request go  
through a reverse proxy.  In that way, you client wouldn't see those  
never-ending Zope URLs on the browser address bar.

In this case, it would go as follows:

============
- Directory /icons, Handler "file"
     -> Document root: /usr/share/cherokee/icons/

- Directory /cherokee_themes, Handler "file"
     -> Document root: /usr/share/cherokee/themes/

- Directory /about, Handler "server_info"

- Default, Handler "HTTP reverse proxy"
     -> Source: localhost:8080
     -> Rewrite /(.*)$ -> /VirtualHostBase/http/cb.rbgsys.com:80/cb/ 
VirtualHostRoot/$1
============

Remember that the order in the list does matter (requests are  
evaluated from top to bottom).

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to