M
manoj.agarwal.in
Hi
I want to do some hash on the HTTP_COOKIE string which gives me a value
between 1 to 1000. For this I have written a perl script. Now I want to
call this perl script in my rewrite.conf (rewrite rule file) file in
apache. I am using RewriteMap for this but haven't succeeded. May be I
haven't understood using rewritemap well.
So my question is:
a. Can I reset my HTTP_COOKIE value in the rewrite.conf file?
b. Would calling a perl script be a good idea for this or is there any
other way around?
c. Can I write the logic of hashing within my conf file?
My conf file looks like:
RewriteMap cookie1 prg:/home/y/share/htdocs/cookie1.pl
RewriteRule ^/(index.html)?$ ${bcookie:$1} [L,PT]
Am I doing something wrong in this?
rgds
Manoj
I want to do some hash on the HTTP_COOKIE string which gives me a value
between 1 to 1000. For this I have written a perl script. Now I want to
call this perl script in my rewrite.conf (rewrite rule file) file in
apache. I am using RewriteMap for this but haven't succeeded. May be I
haven't understood using rewritemap well.
So my question is:
a. Can I reset my HTTP_COOKIE value in the rewrite.conf file?
b. Would calling a perl script be a good idea for this or is there any
other way around?
c. Can I write the logic of hashing within my conf file?
My conf file looks like:
RewriteMap cookie1 prg:/home/y/share/htdocs/cookie1.pl
RewriteRule ^/(index.html)?$ ${bcookie:$1} [L,PT]
Am I doing something wrong in this?
rgds
Manoj