Red Hat Bugzilla – Bug 138428
The RewriteLock file is not be created
Last modified: 2007-11-30 17:07:05 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Description of problem:
The file of RewriteLock directive is not created. It is important
for using rewrite maps with external programs.
The machine runs RHEL3 (Update 2) and the httpd-2.0.46-32.ent
actually comes with the RHEL3 (Update 2).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Define the directive RewriteLock
2.Turn on the rewrite engine and define some rewrite maps with
3.Start the Apache daemon
Actual Results: The RewriteLock file is not created.
Expected Results: The RewriteLock is created.
The RewriteLock directive is used to ensure that only one httpd child
writes to the RewriteMap program at a time. The RewriteLock is
implemented as a SysV semaphore by default on Linux in Apache httpd
2.0, so no file will be created on the filesystem.
Can you describe exactly what issue you are seeing with the RewriteLock?
Thanks for you reply, Joe.
Below are the build parameters of the httpd:
# /usr/sbin/httpd -V
Server version: Apache/2.0.46
Server built: Mar 1 2004 12:14:32
Server's Module Magic Number: 20020903:4
Server compiled with....
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
Do you mean that the RewriteMap program will work properly when many
requests fall into the RewriteRule at the same time even though the
RewriteLock file is not created?
Also, as I defined serveral RewriteMap programs for different
RewriteRules, can the Apache handle properly under this case?
Thanks a lot!
> Do you mean that the RewriteMap program will work properly when many
> requests fall into the RewriteRule at the same time even though the
> RewriteLock file is not created?
Yes, so long as the RewriteLock directive is present in the
configuration it will work correctly. Internally the choice of lock
means that no file will be present on Linux.
> Also, as I defined serveral RewriteMap programs for different
> RewriteRules, can the Apache handle properly under this case?
Yes, that should work fine too. I'll mark this report NOTABUG.