Freek Dijkstra wrote:
Curious,
is never matched
is matched.
Logically, I would have expected both regexps to yield the same result.
I did some more testing, and it just seems that the the end of line
anchor is just never matched. I can easily reproduce it with only a few
configuration
James Coyle wrote:
Ever since I reinstalled Snow Leopard on my Mac, i've had some serious
Apache issues. Judging from this diagnostic information:
httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf:
Cannot load /private/etc/apache2/libexec/apache2/mod_authn_file.so
into
[My apologies for the many posts; I just notices that my mailer removed
the tags thinking it was HTML]
Freek Dijkstra wrote:
Curious,
Directory ~ ^/var/www/projects/.*$ is never matched
Directory ~ ^/var/www/projects/.* is matched.
Logically, I would have expected both regexps to yield
Eric Covener wrote:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49809
I had looked into this august 2009 and couldn't figure out any good
reason why it should be matched as a literal.
Eric,
Thanks for looking into this. It is highly appreciated.
Is there anything I can do to help?
I
Eric Covener wrote:
The patch is very easy, but I am afraid it might not be suitable to
backport to 2.2.x.
I struggled with finding some fancy PCRE feature that would make this
work as most people expect it to -- \Z or negative lookahead, but
AFAICT they all fail to simulate the $ due to
Freek Dijkstra wrote:
Steps to reproduce
1. Add the following configuration to httpd.conf:
Alias /test/ /var/www/test/
Directory /var/www/test/projects
Options Indexes
Order deny,allow
Deny from all
/Directory
Directory ~ /var/www/test/projects/$
Allow from all
Eric Covener wrote:
I didn't realize that was an option, or that it would help matters.
I am not sure if it does helps; Frankly, this is the first time I look
at the Apache code. I still don't understand how things relate, so the
above contains a few assumptions. Take it as a suggestion how I
gives a 403 Forbidden.
I have the feelings I'm missing something obvious here. I'm using Apache
2.2.9 on Debian Lenny.
How could I make this work?
Regards,
Freek Dijkstra
-
The official User-To-User support forum of the Apache
Eric Covener wrote:
Directory ~ ^/var/www/projects/$
Allow from all
/Directory
satisfy any?
Sorry, no change.
Requesting /projects/ still gives a 403 Forbidden.
Also, If I understand correctly, what I want is satisfy all;
(thus both require valid-user and allow all should be satisfied.)
Freek Dijkstra wrote:
It seems that Directory ~ ^/var/www/projects/$ is just not matched
for some reason.
Curious,
Directory ~ ^/var/www/projects/.*$ is not matched either
However,
Directory ~ ^/var/www/projects/.* is matched.
Logically, I would have expected both regexps to yield the same
10 matches
Mail list logo