Avatar of noshankus
noshankusFlag for Ireland asked on

Apache caching broken uploads before proxypass

Hi All,


I have Apache2.2.? running in front of a java application (standalone, not running in tomcat) which is accepting picture uploads on port 8000.

Apache performs a simple proxypass and proxyreverse as follows:

ProxyPass /upload/ http://127.0.0.1:8000/
ProxyPassReverse /upload/ http://127.0.0.1:8000/

which works.

However, I have an issue with broken uploads. This java application doesn't log the normal http POST that I can see in the apache logs, leading to simply not having enough information on the backend.


So, after some background information, let me get to my question.


What is the correct way to implement Apache to cache uploads until the upload is complete before forwarding onto another service via mod_proxy?

And, also, does this support broken uploads? If we are using a cache, does it append the previously initiated upload, or does it start afresh?


I appreciate any help you can offer regarding my direct questions. Please do not say "Just get the developers to implement proper logging for the uploads" - I'm aware of that, but that takes time. I just want to know in theory if such a thing is possible and to be pointed in the right direction, such as modules I need to include and how the theory ties together.


Thank you for your help and time.
Best regards
Apache Web ServerWeb Servers

Avatar of undefined
Last Comment
giltjr

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
giltjr

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
noshankus

The problem is that it IS caching incoming traffic that it 'proxypass'es to tomcat and I want to make it forward the traffic packet for packet.

I'm sure there must be something that is caching it (tcpdumps prove it), I just want to know what could be doing it as default. I have tried to find information on mod_proxy caching, but to no avail.
giltjr

Are you using mod_cache?
ASKER
noshankus

Hi,


yes. However, I found the issue. It was related to another providers WAP gateway which was set to cache certain types of traffic.

Apologies for not getting back sooner.


Best regards,
Your help has saved me hundreds of hours of internet surfing.
fblack61
SOLUTION
giltjr

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question