From: Ralf S. Engelschall Date: Tue, 24 Feb 1998 13:39:08 +0000 (+0000) Subject: First part to fix the synchronization-locking for RewriteMap programs under X-Git-Tag: APACHE_BIG_SYMBOL_RENAME_POST~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97f8f0a7be5e62c9e2d16d68e4e932f2e457c3e4;p=apache First part to fix the synchronization-locking for RewriteMap programs under Unix derivates who doesn't accept the locking of pipes directly. But we perhaps have another problem: According to FreeBSD's manpage and a hint by the submitter of PR#1029 flock() has to be used on opened filedescriptors which are _not_ duplicated via fork(). This currently is not the case... Submitted by: Ralf S. Engelschall Reviewed by: Ralf S. Engelschall, Jim Jagielski git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@80311 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html b/docs/manual/mod/mod_rewrite.html index 03a22c5622..96943d6104 100644 --- a/docs/manual/mod/mod_rewrite.html +++ b/docs/manual/mod/mod_rewrite.html @@ -68,6 +68,7 @@ gifted exclusively to the The Apache Group in July 1997 by
  • RewriteOptions
  • RewriteLog
  • RewriteLogLevel +
  • RewriteLock
  • RewriteMap
  • RewriteBase
  • RewriteCond @@ -252,6 +253,32 @@ RewriteLogLevel 3

    +

    RewriteLock

    +Syntax: RewriteLock Filename
    +Default: -None-
    +Context: server config, virtual host
    +

    + +This directive sets the filename for a synchronization lockfile which +mod_rewrite needs to communicate with RewriteMap +programs. Set this lockfile to a local path (not on a NFS-mounted +device) when you want to use a rewriting map-program. It is not required for +SAMP +using all other types of rewriting maps. + +

    +


    +

    +

    RewriteMap

    Avoid one common mistake: never do buffered I/O on stdout! - This will cause a deadloop! Hence the ``$|=1'' in the above - example... + This will cause a deadloop! Hence the ``$|=1'' in the above + example... +
  • Use the RewriteLock directive to define a lockfile + mod_rewrite can use to synchronize the communication to the program. + Per default no such synchronization takes place.