Question Locked

Apache 2.2 Problem Caching and Reverse Proxy

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Good Morning

I recently got a request to do some research on revearse proxies in Apache 2.2. After abit of RTFM I finally got it running. I have a problem accessing some of the images that are loaded from the reverse proxy. Since this only occurs the machines outside my DMZ I assume its a access issue. Was wondering if caching the images on the reverse proxy would get around this (just an idea :P).

####################################################
####################################################

LoadModule cache_module modules/mod_cache.so

mod_disk_cache.so
mod_mem_cache,

CacheRoot c:/cacheroot
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3

LoadModule mem_cache_module modules/mod_mem_cache.so

CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048

####################################################
####################################################

Using the following piece of code and well nothing happens. Any help would be gratly appreciated?

Adam

6 replies

by jaqui

using caching will not help with the issue.

apache can access the content. it is only those outside the local network that can't?
[ ie, you can get the images from a system in the office, but not from one from the internet ]

if it can only be accessed from a system in the DMZ of the network, then it is the firewall that is blocking access.
[ and it should be working from the internet then. ]

edit to add:

if the images cannot be seen from the internet and the system running apache is in the DMZ, then it is an apache issue.
and you will get a good bit of help from the apache users email list, if it isn't something in the list archives already.
I know that several people actively involved in the list are developers of the Apache Software Foundation's HTTPD server project commonly called Apache.
[ TomCat java server is another Apache Server project. ]

by sovereign32

Alas the glory of a firewall - Got this far...

For reverse proxies this works pretty well:

ProxyPass /PayWeb http://XXX.XXX.XX.XXX:7001/Payz
ProxyPassReverse /Payz http://XXX.XXX.XX.XXX:7001/Payz

But this isn't working, to my horror.

ProxyPass /OmniManager http://XXX.XXX.XX.XXX:8080/iManager5
ProxyPassReverse /iManager http://XXX.XXX.XX.XXX:8080/iManager5
#RewriteBase /iManager
#RewriteRule ^Manager$ iManager5/ [R]
RewriteRule ^Manager$ /jsp/HostList.jsp

*The extra code is since the link requires the extra .jsp to work.
* Note this is hosted by Tomcat 5.X can this influence my display of images?
It looks right but once again image trouble loading. Comments welcome.

by jaqui

I have never used Tomcat but I know that the apache users email list frequently sees questions due to issues integrating Tomcat and the HTTPD server. And I remember seeing one related to images within the last year, so it could very well be an integration issue.

This discussion is closed to new replies.