This is a discussion on mod rewrite and rewritemap within the Apache Web Server forums, part of the Web Server and Related Forums category; I am unable to get the perl script to run with this rewritemap directive. RewriteEngine on RewriteMap guard prg:/path/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am unable to get the perl script to run with this rewritemap directive.
RewriteEngine on RewriteMap guard prg:/path/rewrite_test/guard.pl RewriteRule ^/secure1/(.*)$ /secure2/${guard:$1} [P,L] The url gets rewritten but the guard.pl script does not run. I put some routines to write into a test file so that I could see if it runs and it does not. I read something about a lock file directive. RewriteLock file_path and tried RewriteLock /home/johnm/sites/goldclubno/cgi-bin/rewrite_test/lock_file but the directive is not well defined. Any thoughts appreciated. thanks jm |
|
|||
|
> RewriteEngine on
> > RewriteMap guard prg:/path/rewrite test/guard.pl > > RewriteRule ^/secure1/(.*)$ /secure2/${guard:$1} [P,L] > > The url gets rewritten but the guard.pl script does not run. I put some > routines to write into a test file so that I could see if it runs and it > does not. > > I read something about a lock file directive. > > RewriteLock file path > > and tried > > RewriteLock /home/johnm/sites/goldclubno/cgi-bin/rewrite test/lock file > > but the directive is not well defined. did you try to use filenames without spaces or using double quotes for these? joachim |