Hello!,

I've just tested it and it works, but installing Mythweb under "/mythweb" ;)

Anyway, David, you must add these environment variables to your PHP
information source:

db_server
db_name
db_login
db_password

And now a question for the rest of the audience: could it be
interesting a handler to add environment variables per rule? In this
way, we could have environment variables per rule and not per
information source.

I think I'll code a Mythweb Wizard for cherokee-admin, BTW...

On Tue, Sep 15, 2009 at 10:50 AM, Alvaro Lopez Ortega
<[email protected]> wrote:
> Hello there,
>
> It looks like it'd be something like this:
>
> - Extension .php, handler FastCGI. Non-Final.
> - Extension .pl, (however you want to configure this). Non-Final.
> - File Exists (any), handler File. Final.
> - RegEx ^/(pl(/.*)?)$, handler Redirection, substitution: /mythweb.pl/
> $1. Final.
> - RegEx ^/(.+)$, handler Redirection, substitution: /mythweb.php/$1.
> Final.
> - Default: handler Redirection, substitution: /mythweb.php. Final.
>
> Bare in mind that rules are evaluated from top to bottom, so the order
> does matter.
> Good luck!
>
> On 15/09/2009, at 10:23, David Becerril wrote:
>
>> Hi everybody.
>>
>> I am trying to setup mythweb in cherokee, but i am unable to
>> configure the rewrite rules properly. I have a apache configuration
>> and lighttpd and trying to put those for cherokee.
>>
>>
>> The rules needed are the following:
>>
>>         "^/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" =>
>> "$0",
>>         "^/(pl(/.*)?)$" => "/mythweb.pl/$1",
>>         "^/(.+)$"       => "/mythweb.php/$1",
>>         "^/(.*)$"       => "/mythweb.php"
>>
>>
>> I tried to insert them just as a regular expression and redirection
>> as a handler. But the css, data, images, js, themes, etc are not
>> working properly.
>> What are the rules should I use?
>>
>> Thanks for your help.
>> _______________________________________________
>> Cherokee mailing list
>> [email protected]
>> http://lists.octality.com/listinfo/cherokee
>
> --
> Octality
> http://www.octality.com/
>
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee
>



-- 
Saludos:
Antonio Pérez
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to