httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian A. Davis" <>
Subject [users@httpd] Regex fails to complie
Date Thu, 25 Aug 2016 19:59:06 GMT

I'm trying to reject requests hitting my apache proxy which are NOT going
to *, * or * I'm trying to avoid
bogus requests like

The regex I'm using is:


This is working exactly how I want on, but
when I put this into my apache config:

<If "%{REQUEST_URI} =~ /\\:\d{2,5}|\/.*)?$/">

I get the following error:

httpd[3704]: AH00526: Syntax error on line 179 of
httpd[3704]: Cannot parse condition clause: Failed to compile regular

Is apache limited in the regex support that it has?

httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Nov 19 2015 21:43:13


View raw message