[users@httpd] PCRE issue with Apache 2.0.54 (Debian)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all. I'm using the standard Debian 2.0.54-5 package and PCRE seems to be not working--or I'm doing something wrong. I've been banging my head against the wall on this problem for hours and I'm starting to get sore.

I'm trying to have everything on one site be protected with basic auth, except for requests starting with /foo. This should work, but it doesn't:

<LocationMatch "^/(?!foo)">
  AuthType Basic
  AuthName "Development Site"
  AuthUserFile /etc/apache2/auth/dev-passwd
  Require valid-user
</LocationMatch>

It doesn't give me any errors...it just *always matches*. I've tried a lot of other combinations, to no avail:
  /(?!foo)
  /(?!foo).*
  \/(?!foo)
  /(?<!foo)
  etc.

If I just do "^/foo", it does match only on /foo and not on the rest of the site, but that's the opposite of what I want.

Any ideas? It seems to me that PCRE is just not installed, but this is the standard Debian package and I haven't seen any other posts complaining about this.

I've included info about my installation below.

Cheers,

Brad


$ /usr/sbin/apache2 -V
Server version: Apache/2.0.54
Server built:   Sep  5 2005 11:15:09
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=""
 -D SUEXEC_BIN="/usr/lib/apache2/suexec2"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"


$ /usr/sbin/apache2 -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_negotiation.c
  mod_dir.c
  mod_alias.c
  mod_so.c




$ sudo dpkg -l | grep apache2
ii apache2 2.0.54-5 next generation, scalable, extendable web se ii apache2-common 2.0.54-5 next generation, scalable, extendable web se
ii  apache2-mpm-pr 2.0.54-5       traditional model for Apache2
ii  apache2-utils  2.0.54-5       utility programs for webservers
ii  libapache2-mod 2.4.2-6        FastCGI module for Apache2
ii libapache2-mod 4.3.10-16 server-side, HTML-embedded scripting languag
ii  libapache2-svn 1.1.4-2        apache modules for Subversion (aka. svn)

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux