mod_proxy debug logging

Hi,

I've got a Tomcat server that's being accessed by users via an different Apache server (2.2). Originally I used mod_jk to make the Tomcat server (running on 8080) available on port 80, but I always found mod_jk rather unstable.
So I just configured Apache to use mod_proxy (reverse proxy) instead and so far it's behaving a lot better.

However, one annoying thing I noticed is that Apapche's error log is getting all debug logs from mod_proxy and mod_proxy_http.
I checked the config, but the loglevel is set to warn.

Is there a way to either disable debug logging for mod_proxy? or alternatively set mod_proxy to log to it's own log file?

Thanks
Skip
schipmolderAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brad HoweDevOps ManagerCommented:
Hi,

Unfortunately, there is no way to redirect the proxy logging....I have tried many ways.

To disable it or limit it, make the following changes to the httpd.conf and set the LogLevel to what you want to capture.

<IfModule mod_proxy.c>
        LogLevel Debug
</IfModule>

LogLevel

http://httpd.apache.org/docs/1.3/mod/core.html#loglevel

Cheers,
Hades666
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
schipmolderAuthor Commented:
Thanks Hades, weird they never put a logfile directive in there... Ah well I guess i can live with it when i tell it to log errors only.

Thanks for the tip!

Skip
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.