httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Watts ...@dionic.net>
Subject Re: [users@httpd] Combining deny and allow conditions
Date Tue, 01 Jun 2010 13:42:49 GMT
On 01/06/10 14:24, Eric Covener wrote:
> On Tue, Jun 1, 2010 at 8:34 AM, Tim Watts<tw@dionic.net>  wrote:
>> On 01/06/10 13:29, Eric Covener wrote:
>>>>
>>>> I could do it better if there was a "FilesNotMatch" directive or
>>>> equivalent.
>>>
>>> You can use the zero-width assertions like negative lookahead in PCRE
>>> to create *Match directives that are conceptually negated.
>>>
>>>
>>
>> Ah. Any chance of an example to get me going, he says cheekily ;->
>>
>> I can test them with pcretest first.
>
> something like this?
>
> ^.+\.(?!(html|css|js)$)
>
>

I see that starting to work in pcretest. I'll work on that a bit and see 
if I can understand what ?! is doing (I'm au fait with perl REs but I've 
not used that construct before...

Thanks very much for the pointer Eric.

Cheers

Tim

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message