*1. /[EMAIL PROTECTED]/* Aug 16, 12:48 pm show
options
<http://groups-beta.google.com/group/alt.apache.configuration/tree/browse_frm/thread/50ec94e17af9be8f/e95cc624d3d86350?rnum=1&hl=en&_done=%2Fgroup%2Falt.apache.configuration%2Fbrowse_frm%2Fthread%2F50ec94e17af9be8f%2Fe95cc624d3d86350%3F#>
Newsgroups: *alt.apache.configuration*
From: *tim.sturtewa...
<http://groups-beta.google.com/groups/unlock?msg=e95cc624d3d86350&_done=/group/alt.apache.configuration/browse_frm/thread/50ec94e17af9be8f/e95cc624d3d86350%3F>@gmail.com*
- Find messages by this author
<http://groups-beta.google.com/groups?enc_author=zsWcbxkAAAA9kRNy3X_lLUzI7s4h3MGkFEmssiLmwyaEWxy9LPEfEQ&hl=en>
Date: *16 Aug 2005 03:48:34 -0700*
Local: *Tues, Aug 16 2005 12:48 pm *
Subject: *RewriteLock never created*
Reply
<http://groups-beta.google.com/group/alt.apache.configuration/post?hl=en&inreplyto=e95cc624d3d86350&reply_to=group&_done=%2Fgroup%2Falt.apache.configuration%2Fbrowse_frm%2Fthread%2F50ec94e17af9be8f%2Fe95cc624d3d86350%3F>
| Reply to Author
<http://groups-beta.google.com/group/alt.apache.configuration/post?hl=en&inreplyto=e95cc624d3d86350&reply_to=author&_done=%2Fgroup%2Falt.apache.configuration%2Fbrowse_frm%2Fthread%2F50ec94e17af9be8f%2Fe95cc624d3d86350%3F>
| Forward
<http://groups-beta.google.com/group/alt.apache.configuration/post?hl=en&inreplyto=e95cc624d3d86350&forward=1&_done=%2Fgroup%2Falt.apache.configuration%2Fbrowse_frm%2Fthread%2F50ec94e17af9be8f%2Fe95cc624d3d86350%3F>
| Print
<http://groups-beta.google.com/group/alt.apache.configuration/msg/e95cc624d3d86350?dmode=print&hl=en>
| Individual Message
<http://groups-beta.google.com/group/alt.apache.configuration/msg/e95cc624d3d86350?hl=en&>
| Show original
<http://groups-beta.google.com/group/alt.apache.configuration/msg/e95cc624d3d86350?dmode=source&hl=en>
| Remove
<http://groups-beta.google.com/group/alt.apache.configuration/msg_delete?docid=e95cc624d3d86350&hl=en>
| Report Abuse
<http://groups-beta.google.com/groups/abuse?hl=en&group=alt.apache.configuration&url=http:%2F%2Fgroups-beta.google.com%2Fgroup%2Falt.apache.configuration%2Fmsg%2Fe95cc624d3d86350>
Hi,
I am having a hard time here configuring apache2 with mode_rewrite.
The setup is as this: I use mod_rewrite which is working fine.
I use an external perl RewriteMap program:
#!/usr/bin/perl
# disable buffered I/O which would lead
# to deadloops for the Apache server
$| = 1;
# read cookie values one per line from stdin and
# generate substitution URL on stdout
while (<STDIN>) {
my $tofind = "";
if (/([^\.]+).*/) {
$tofind = $1;
}
if (!$tofind == "") {
if (/[^\.]+(.*)\.$tofind-([^\.|\n]+)([^\n]*)/) {
print "$2$3$1\n";
} elsif (/[^\.]+\.$tofind-([^\.|\n]+)([^\n]*)/) {
print "$1$2\n";
} elsif (/[^\.]+([^\n]*)/) {
print "1$1\n";
}
} else {
print "1\n";
}
}
It simply reads a key and with a regex changes some values in it.
The program works fine, when tested command line.
I also use a RewriteLock like this:
RewriteLock /var/lock/apache2/map.cookie.l
ock
When I freshly reload the server and get a lot of hits, all works fine.
But after a while,
the RewriteMap starts returning unsynchronized values. So I get
rewritten values for keys of other requests.
The error that i see when reload apache once the errors stat ocurring
is:
[Sun Aug 14 17:19:20 2005] [error] [client 213.3.49.145] (43)Identifier
removed: apr_global_mutex_lock(rewrite_mapr_lock_acquire) failed
I have tried changing the |AcceptMutex directive, which in Debian is
default sysvsem, to fcntl or flock, but without any success. No lock
files, and out-of-sync after a while.
I was wondering if anyone has any experience with this?
For reference: the apache version is 2.0.54-4 on debian unstable
Kind regards,
Tim Sturtewagen
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]