On Nov 12, 1:18 pm, Alvaro Lopez Ortega <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> The bug is closed now. The new feature has been integrated in trunk  
> (r2386): Now both the server and the administration interface can add  
> and hide arbitrary headers.
>
> Cheers!
>
> On 12-nov-08, at 07:45, Alvaro Lopez Ortega wrote:
>
> > On 11-nov-08, at 22:45, chumpalump wrote:
>
> >> Hello, All.  I'm trying to setup cherokee 0.11 as a proxy for a
> >> moinmoin wiki farm.  In apache I've used:
>
> >> Alias /moin_static171/ "/usr/share/moin/htdocs/
> >> <Location /chumpalump/>
> >>   ProxyPasshttp://localhost:8000/
> >>   ProxyPassReversehttp://localhost:8000/
> >>   RequestHeader set X-Moin-Location /chumpalump/
> >>   Order deny,allow
> >>   Allow from all
> >> </Location>
>
> >> In cherokee, I'm using the generic balancer in a /chumpalump
> >> directory, and static content for the /moin_static171 directory.  
> >> But I can't
> >> find a way to attach a header to be passed to the moin server.  Any  
> >> ideas?
>
> > You should use the new 'HTTP reverse proxy'. That will do the job at  
> > the right layer.

Now I have the config below:

Target  Type    Handler Auth    Enc     Exp     Final
/moin_static171 Directory       Static content  No      No      No
        Delete
/chumpalump     Directory       HTTP reverse proxy      No      No      No
        Delete

But I have two problems.  First, a UI bug prevents me from actually
adding the "X-Moin-Location /chumpalump/" header.  I fill the two
input
boxes, click "add" and nothing happens.

Second, problem is when I point my browser at:
http://127.0.0.1/chumpalump/MainPage

a cherokee-worker process immediately pegs at 100% and does not stop
until I kill it.  Since I couldn't add the X-Moin-Location header, I
expected to see quick error message from Moin saying, "No matching
URL."
Pasted below is a snippet from top showing the cherokee-worker.

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
COMMAND
26829 www-data  20   0 78240 2160 1472 S  100  0.1   0:38.66 cherokee-
worker

Ahhh, it just failed after a couple minutes:

500 Internal Server Error
Cherokee web server 0.11.0 (Debian GNU/Linux), Port 80

Moin is showing no requests while I tail its logs.  What would be
helpful to see to diagnose this?

vserver!10!rule!700!document_root = /usr/share/moin/htdocs
vserver!10!rule!700!encoder!deflate = 0
vserver!10!rule!700!encoder!gzip = 0
vserver!10!rule!700!handler = file
vserver!10!rule!700!handler!iocache = 1
vserver!10!rule!700!match = directory
vserver!10!rule!700!match!directory = /moin_static171
vserver!10!rule!700!only_secure = 0
...
vserver!10!rule!600!encoder!deflate = 0
vserver!10!rule!600!encoder!gzip = 0
vserver!10!rule!600!handler = proxy
vserver!10!rule!600!handler!balancer = round_robin
vserver!10!rule!600!handler!balancer!source!1 = 2
vserver!10!rule!600!match = directory
vserver!10!rule!600!match!directory = /chumpalump
...
source!1!host = http://localhost:8001/
source!1!nick = hg
source!1!type = host
source!2!host = http://localhost:8000/
source!2!nick = wiki
source!2!type = host
source!3!host = http://localhost:5984/
source!3!nick = couchdb
source!3!type = host
source!4!host = http://localhost:9988/
source!4!nick = pydoc
source!4!type = host

Sincere thanks for your help,
  Dave

> > There is a problem converting the configuration you pasted, though.  
> > The reverse proxy is currently missing the ability for adding  
> > arbitrary headers to the relayed requests. I have just logged a new  
> > bug about it:
>
> >  http://code.google.com/p/cherokee/issues/detail?id=216
>
> > We'll address the issue ASAP. The patch will be most probably be  
> > committed within today.
>
> > Cheers!
>
> > --
> > Octality
> >http://www.octality.com/
>
> --
> Octalityhttp://www.octality.com/
>
> _______________________________________________
> Cherokee mailing list
> [EMAIL PROTECTED]://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to