mod rewrite and rewritemap

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/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-10-2003
John Michael
 
Posts: n/a
Default mod rewrite and rewritemap

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



  #2 (permalink)  
Old 11-13-2003
Joachim Ring
 
Posts: n/a
Default Re: mod rewrite and rewritemap

> 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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0