Hi Michiel.
You don't need to configure any handler for that rule. Being a non-final
directory rule, the specified document root will be read and the
evaluation will continue.
You get to the PHP rule, which then knows how to handle the php
extension, and the evaluation proceeds until you get to a final rule.
Here you have a very basic (working) configuration file to demonstrate
the concept.
Unless I'm missing the point, of course.
Good luck! :)
Michiel van Es wrote:
Hi Taher,
Yes I have seen the basic steps, it is a non final folder, it is above
of the php extension.
It is offering me when I go to /torrent/ a 403 or when I go to
/torrent/index.php a download file.
I am sorry but I could not find the solution at one of your screencasts.
For example what kind of handle should I take? I can not find that on
the screencast.
Kind regards,
Michiel
--
[email protected]
http://unixwars.com/
config!version = 000099043
server!bind!1!port = 80
server!collector = rrd
server!keepalive = 1
server!keepalive_max_requests = 500
server!panic_action = /usr/bin/cherokee-panic
server!pid_file = /var/run/cherokee.pid
server!server_tokens = full
server!timeout = 15
vserver!10!collect_statistics = 0
vserver!10!collector!enabled = 1
vserver!10!directory_index = index.php,index.html
vserver!10!document_root = /var/www/default
vserver!10!error_writer!filename = /var/log/cherokee.error
vserver!10!error_writer!type = file
vserver!10!keepalive = 1
vserver!10!logger = combined
vserver!10!logger!access!filename = /var/log/cherokee.access
vserver!10!logger!access!type = file
vserver!10!logger!x_real_ip_access_all = 0
vserver!10!logger!x_real_ip_enabled = 0
vserver!10!nick = default
vserver!10!rule!300!disabled = 0
vserver!10!rule!300!document_root = /var/www/torrent
vserver!10!rule!300!match = directory
vserver!10!rule!300!match!directory = /torrent
vserver!10!rule!300!match!final = 0
vserver!10!rule!300!no_log = 0
vserver!10!rule!300!only_secure = 0
vserver!10!rule!200!disabled = 0
vserver!10!rule!200!encoder!gzip = 1
vserver!10!rule!200!handler = fcgi
vserver!10!rule!200!handler!balancer = round_robin
vserver!10!rule!200!handler!balancer!source!1 = 21
vserver!10!rule!200!handler!error_handler = 1
vserver!10!rule!200!match = extensions
vserver!10!rule!200!match!extensions = php
vserver!10!rule!200!match!final = 0
vserver!10!rule!200!timeout = 30
vserver!10!rule!100!disabled = 0
vserver!10!rule!100!handler = common
vserver!10!rule!100!handler!allow_dirlist = 1
vserver!10!rule!100!handler!allow_pathinfo = 0
vserver!10!rule!100!handler!backup = 0
vserver!10!rule!100!handler!date = 1
vserver!10!rule!100!handler!group = 0
vserver!10!rule!100!handler!hidden = 0
vserver!10!rule!100!handler!iocache = 0
vserver!10!rule!100!handler!redir_symlinks = 0
vserver!10!rule!100!handler!size = 1
vserver!10!rule!100!handler!symlinks = 1
vserver!10!rule!100!handler!theme = firefox3
vserver!10!rule!100!handler!user = 0
vserver!10!rule!100!match = default
vserver!10!rule!100!match!final = 1
vserver!10!rule!100!no_log = 0
vserver!10!rule!100!only_secure = 0
source!21!env!PHP_FCGI_CHILDREN = 5
source!21!env!PHP_FCGI_MAX_REQUESTS = 490
source!21!host = 127.0.0.1:47990
source!21!interpreter = /usr/bin/php-cgi -b 127.0.0.1:47990
source!21!nick = PHP Interpreter
source!21!type = interpreter
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee