I made a mistake:

Where it says:
/ (type: default, handler: proxy, target: information source A)

It should be:
    (default) .....

It isn't a Directory/Fullpath/regex-type rule, after all.

:)

On 13/10/10 11:47, Taher Shihadeh wrote:
Hey, let it be peace!! ;)
One flamewar is enough for this month. I don't think Stefan was implying anything special. Maybe the explanation seemed too obvious to him, which it isn't if there is space left for doubt. I'll be more verbous, and would love it if you could give back some pointers as to which documentation sections you would have improved (and how). :-)

The mappings:
Instead of using your apporach with Apache, let your default rule proxy '/' and everything not previously matched. In our example, this will point to the information source called A, for example, on your preferred port: 1234. And instead of negating other folders, make Directory-type rules for each path that is to be served by other backends: say source B at port 1235 and source C at port 1236.

Rules:
/foo (type: Directory, handler: proxy, target: information source B) /bar (type: Directory, handler: proxy, target: information source C) / (type: default, handler: proxy, target: information source A)

Information sources:
    A        127.0.0.1:1234
    B        127.0.0.1:1235
    C        127.0.0.1:1236

Let us know if it works for you. And I'm serious about the documentation hints. I'll be waiting for those ;)
The clearer our docs are, the better.

Regards.

On 13/10/10 11:19, Voltron wrote:
For fear that the issue might have been to obvious, I decided to take
a look again in the doc(http://www.cherokee-project.com/doc/
config_virtual_servers_rule_types.html). I saw no direct connection
with a case of using a case with several backends that match specific
paths.

I apologize for my ignorance. Is there someone that can explain things
with a few more details? Or is there a page that clarifies the
situation in a doc page that I have missed? I would rather not have
help with stefan using words like "seriously" and "obviously", it
implies something else.

Thanks


On Oct 13, 11:11 am, Stefan de Konink<[email protected]>  wrote:
On Wed, 13 Oct 2010, Voltron wrote:
I still cant get this to work:
Host match : *localhost
The first rule:
^/admin/(.+)?/ ( I want to match /admin")
Second:
^//(.+)?/ ( I want to match "/")
Seriously... we have a Directory match for that, stuff that works out of
the box.

Stefan
_______________________________________________
Cherokee mailing list
[email protected]http://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee




--
[email protected]
http://unixwars.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to