Jack L wrote, On 18/02/07 15:42:
> I have some fastcgi servers written in C and I would
> like to use them with cherokee. They are located in
> the fcgi-bin directory, such as:
>
> /usr/local/bin/fcgi/register
>
> And I'd like cherokee to start the fastcgi server (if it's
> not running) and forward these requests to it:
> http://domain/fcgi/register or even
> http://domain/register
>
> I haven't figured out how to configure these fastcgi servers
> in cherokee.conf. I tried something like listed below but
> it didn't seem to start the fastcgi server. I'm particularly
> not sure about the "Interpreter" line which I copied from
> PHP fastcgi configuration.
>
> Directory /fcgi/register {
> Handler fcgi {
> Server localhost:8002 {
> Interpreter "/usr/local/bin/register"
> }
> }
> }
/fcgi/register isn't a directory.
You could use a Request entry:
===========
Request "^/fcgi/register$" {
Handler fcgi {
Server localhost:8002 {
Interpreter "/usr/local/bin/register"
}
}
}
===========
or even something like:
===========
Directory /register {
Handler fcgi {
Server localhost:8002 {
Interpreter "/usr/local/bin/register"
}
}
}
===========
I'd pick this second example, the URL is cleaner and the server will
be a bit faster because it doesn't need to evaluate a regular
expression.
--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee