| Summary: | CacheEnable does not understand http url | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Mike Millson <mmillson> |
| Component: | httpd | Assignee: | Luboš Uhliarik <luhliari> |
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | csutherl, jkaluza |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-08 06:14:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mike Millson
2016-01-06 18:18:31 UTC
To reproduce on RHEL 7.2: 1. Tomcat content > mkdir /var/lib/tomcat/webapps/hello/ > touch /var/lib/tomcat/webapps/hello/helloworld.txt > put some text in helloworld.txt > chmod -R root.tomcat /var/lib/tomcat/webapps/hello/ 2. httpd.conf LogLevel debug <Proxy balancer://mycluster> BalancerMember ajp://127.0.0.1:8009 route=node0 loadfactor=1 ping=10 ttl=600 max=60 ProxySet stickysession=JSESSIONID|jsessionid timeout=10 </Proxy> ProxyStatus On ProxyPassMatch ^/hello(.*) balancer://mycluster/hello$1 CacheRoot "/var/cache/httpd/proxy/" CacheEnable disk / #CacheEnable disk /hello/ #CacheEnable disk http://localhost/ #CacheEnable disk http:// CacheDirLevels 3 CacheDirLength 5 CacheIgnoreCacheControl On CacheIgnoreNoLastMod On CacheIgnoreQueryString On CacheQuickHandler off 3. Force browser to reload helloworld.txt (ctrl+f5 with Firefox). 4. mod_cache is not part of the request processing when CacheEnable is the following: CacheEnable disk http://localhost/ CacheEnable disk http:// According to documentation, "http://" or "http://localhost" works only for forward proxies. You are using reverse prosy for which this configuration does not work according to documentation. What's the real problem you are trying to solve? |