Daniel L. Miller wrote: > Antonio Pérez wrote: > >> Hi! >> >> On Fri, May 8, 2009 at 4:13 AM, Daniel L. Miller <[email protected]> wrote: >> >> >> >>> Is there a way to specify variables on a per-folder basis? Looking at >>> the Apache configuration for eGroupware, there are a number of >>> directory-specific PHP directives that I don't see how to implement in >>> Cherokee. >>> >>> >> Create a complex rule that match directory name and php extension. >> Something like this: >> >> vserver!70!rule!800!encoder!deflate = 0 >> vserver!70!rule!800!encoder!gzip = 0 >> vserver!70!rule!800!handler = fcgi >> vserver!70!rule!800!handler!balancer = round_robin >> vserver!70!rule!800!handler!balancer!source!1 = 1 >> vserver!70!rule!800!handler!change_user = 0 >> vserver!70!rule!800!handler!check_file = 1 >> vserver!70!rule!800!handler!env!this_is_my_variable = 1 >> vserver!70!rule!800!handler!error_handler = 1 >> vserver!70!rule!800!handler!pass_req_headers = 1 >> vserver!70!rule!800!handler!xsendfile = 0 >> vserver!70!rule!800!match = and >> vserver!70!rule!800!match!left = directory >> vserver!70!rule!800!match!left!directory = /envvartest >> vserver!70!rule!800!match!right = extensions >> vserver!70!rule!800!match!right!extensions = php >> vserver!70!rule!800!no_log = 0 >> vserver!70!rule!800!only_secure = 0 >> >> Also, see attached image... >> >> Hope this helps... ;) >> >> > Should this complex rule be before or after my default php handler? Do > I still have a "list & send" rule for the directory by itself? Do I > define this rule as "final"? > Also, because of this rule definition, it appears I've lost the "index" function. If I specific a complete URL in the browser, well and good - but if I just specify the folder, it gets rejected.
-- Daniel _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
