• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 14952
  • Last Modified:

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
0
schipmolder
Asked:
schipmolder
1 Solution
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now