httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35611] New: - Inconsistency with SetEnv and SetEnvIf
Date Tue, 05 Jul 2005 11:36:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35611>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35611

           Summary: Inconsistency with SetEnv and SetEnvIf
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_access
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: cwmerrigan@gmail.com


The SetEnv configuration directive does not appear to be working according to
the documentation. Attempting to perform an "allow from env=<ENV VARIABLE>" does
not work with SetEnv but does work with SetEnvIf. The configurations below
further describe the problem.

The test script used simply printed the environment to STDOUT. In configuration
2, if the allow directive is changed to "Allow from all" then we confirmed that
the environment variable AUTH_CLIENT is being printed by the script.

1. Configuration 1 - Access Denied
-----------------------------------
<Directory "/usr/local/www/cgi-bin">
    AllowOverride None
    Options None

    SetEnv AUTH_CLIENT 1
    Order deny,allow
    Deny from all
    Allow from env=AUTH_CLIENT
</Directory>

2. Configuration 2 - Access Granted
-----------------------------------
<Directory "/usr/local/www/cgi-bin">
    AllowOverride None
    Options None

    SetEnvIf Remote_Addr ".*" AUTH_CLIENT=1
    Order deny,allow
    Deny from all
    Allow from env=AUTH_CLIENT
</Directory>

---------------------------------------------------------

# /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.54
Server built:   Jun 19 2005 02:31:01
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_FCNTL_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="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message