Great Eric,
You're right !!! The problem was the slash in RewriteRule (RewriteRule
^/(.*) http://${prgmap:$1}/ [P] ).
Now, I have one more doubt.
My external program forward request with URL with final /1, or /2 and others
URL (for example, /3, /4, /5, etc...) I would like drop.
The external p
Hi,
I run the program outside of Apache, and it works perfeclty (How I would
like). When typed 'http://localhost/1' in browser, the variable number is
assigned value 1.
Why mod_rewrite doesn't rewrite URL ??? I'm writing IP address to output
program.
Thank You
Ricardo
On Wed, May 27, 2009 at 3
> sscanf(strchr(input,'/') + 1, "%d", &number); // extract only number
> RewriteRule ^/(.*) http://${prgmap:$1}/ [P]
> (5) map lookup OK: map=prgmap key=1 -> val=
Decide whether your passing in something with a slash or not. Does
your program do the right thing when run outside of
Hi,
I have a web cluster and use mod_rewrite to forward request to cluster,
according with type of request.
There is a external program in directive RewriteMap to classify requests.
My external program:
...
while(1) {
fscanf(stdin, "%s", input); // read input ---> format = /1, or /2, /3
.