Alvaro Lopez Ortega wrote, On 06/12/2007 11:46:
> Alvaro Lopez Ortega wrote, On 06/12/2007 00:05:
>
> After unpacking the tarball, they only thing I did was to write a little 
> configuration file with the following:
> 
> ========
> vserver!default!document_root = /Users/alo/tmp/gallery2/
> vserver!default!directory_index = index.php,index.html
> 
> vserver!default!extensions!css,gif,jpg,png!handler = file
> vserver!default!extensions!css,gif,jpg,png!priority = 1
> 
> vserver!default!extensions!php!handler = fcgi
> vserver!default!extensions!php!priority = 10
> vserver!default!extensions!php!handler!balancer = round_robin
> vserver!default!extensions!php!handler!balancer!type = interpreter
> vserver!default!extensions!php!handler!balancer!local1!host = localhost:9999
> vserver!default!extensions!php!handler!balancer!local1!env!PHP_FCGI_CHILDREN 
> = 5
> vserver!default!extensions!php!handler!balancer!local1!interpreter = 
> /usr/bin/php-cgi -b 9999
> ========

I have just realized that there is a much better way to write this example:

========
vserver!default!document_root = /Users/alo/tmp/gallery2/
vserver!default!directory_index = index.php

vserver!default!directory!/!handler = common
vserver!default!directory!/!priority = 1

vserver!default!extensions!php!handler = fcgi
vserver!default!extensions!php!priority = 2
vserver!default!extensions!php!handler!balancer = round_robin
vserver!default!extensions!php!handler!balancer!type = interpreter
vserver!default!extensions!php!handler!balancer!local1!host = localhost:9999
vserver!default!extensions!php!handler!balancer!local1!env!PHP_FCGI_CHILDREN = 5
vserver!default!extensions!php!handler!balancer!local1!interpreter = 
/usr/bin/php-cgi -b 9999
========

In fact, this configuration works a little bit better because it finds the 
index.php files when the browser accesses a directory.

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to