Hi,

I have a application server and Cherokee web server running on the same
machine. The application server listens on particular port (like
127.0.0.1:55555) for the http request through FastCGI from the web server.

The URL preferred is something like:

http://192.168.1.75/MyApp/Cmd0?QueryString

I would like to have the application server see the following:

SCRIPT_NAME: /MyApp/Cmd0
QUERY_STRING: QueryString

I have tried a silly approach. I created the dummy directories under the
root web directory: /www/MyApp/Cmd0. In the rule definition, I use directory
as the matching criterion.

The application server sees SCRIPT_NAME and QUERY_STRING correctly.

I defined a matching rule based on regular expression, and FastCgi as
handler, and deleted the dummy directories just created.

Here is the regular expression.

^/MyApp/(\S+)$

The web server returns the error: The requested URL /MyApp/Cmd0 was not
found on this server.

If I put back the dummy directories, it works fine. Looks like my
understanding of regular expression is wrong.

How should I define the rules so I do not need to create any dummy folders?

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

Reply via email to