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 36937] mod_cache not respecting mod_access
Date Thu, 29 May 2008 12:45:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=36937


rahul <rahul@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #6 from rahul <rahul@sun.com>  2008-05-29 05:45:20 PST ---
Unable to reproduce this in 2.3-trunk
Please provide any more information that may help in reproducing this problem


config:

SetEnvIfNoCase Referer ^http://host validreferer

<Directory />
      Order deny,allow
      Deny from all
      Allow from env=validreferer
</Directory>

CacheEnable             mem /
CacheDefaultExpire      21600
CacheMaxExpire          21600
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod    On
CacheDisable            /nocache
MCacheSize              262144
MCacheMaxObjectCount    4096
MCacheMinObjectSize     1
MCacheMaxObjectSize     100000
MCacheRemovalAlgorithm  LRU



|telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html HTTP/1.0
Host: host
Referer: http://invalidhost

HTTP/1.1 403 Forbidden
Date: Thu, 29 May 2008 12:16:33 GMT
Server: Apache/2.3.0-dev (Unix)
Content-Length: 212
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /index.html
on this server.</p>
</body></html>
Connection to localhost closed by foreign host.
zsh: exit 1     telnet localhost 8080
|telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html HTTP/1.0
Host: host
Referer: http://host

HTTP/1.1 200 OK
Date: Thu, 29 May 2008 12:16:39 GMT
Server: Apache/2.3.0-dev (Unix)
Last-Modified: Mon, 26 May 2008 09:34:35 GMT
ETag: "4044f-2d-44e1ee33920c0"
Accept-Ranges: bytes
Content-Length: 45
Connection: close
Content-Type: text/html

<html><body><h1>It works!</h1></body></html>
Connection to localhost closed by foreign host.
zsh: exit 1     telnet localhost 8080
|telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html HTTP/1.0
Host: host
Referer: http://invalidhost

HTTP/1.1 403 Forbidden
Date: Thu, 29 May 2008 12:16:54 GMT
Server: Apache/2.3.0-dev (Unix)
Content-Length: 212
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /index.html
on this server.</p>
</body></html>
Connection to localhost closed by foreign host.
zsh: exit 1     telnet localhost 8080

Error Log: (debug)

[Thu May 29 17:46:16 2008] [notice] Apache/2.3.0-dev (Unix) configured --
resuming normal operations
[Thu May 29 17:46:16 2008] [info] Server built: May 29 2008 16:41:38
[Thu May 29 17:46:16 2008] [debug] prefork.c(960): AcceptMutex: fcntl (default:
fcntl)
[Thu May 29 17:46:33 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter
for /index.html
[Thu May 29 17:46:33 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL
filter for /index.html
[Thu May 29 17:46:33 2008] [error] [client 127.0.0.1] client denied by server
configuration: /space/store/apache.26.May/install/htdocs/index.html, referer:
http://invalidhost
[Thu May 29 17:46:40 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter
for /index.html
[Thu May 29 17:46:40 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL
filter for /index.html
[Thu May 29 17:46:40 2008] [error] [client 127.0.0.1] no authorization
providers configured, referer: http://host
[Thu May 29 17:46:40 2008] [debug] mod_cache.c(637): cache: Caching url:
/index.html
[Thu May 29 17:46:40 2008] [debug] mod_cache.c(643): cache: Removing
CACHE_REMOVE_URL filter.
[Thu May 29 17:46:40 2008] [info] mem_cache: Cached url:
http://host:80/index.html?
[Thu May 29 17:46:54 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter
for /index.html
[Thu May 29 17:46:54 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL
filter for /index.html
[Thu May 29 17:46:54 2008] [error] [client 127.0.0.1] client denied by server
configuration: /space/store/apache.26.May/install/htdocs/index.html, referer:
http://invalidhost


Access Log:

127.0.0.1 - - [29/May/2008:17:46:33 +0530] "GET /index.html HTTP/1.0" 403 212
127.0.0.1 - - [29/May/2008:17:46:39 +0530] "GET /index.html HTTP/1.0" 200 45
127.0.0.1 - - [29/May/2008:17:46:54 +0530] "GET /index.html HTTP/1.0" 403 212


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

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


Mime
View raw message