?
Solved

Log Access HTTP and HTTPS in two different file..

Posted on 2005-04-15
5
Medium Priority
?
207 Views
Last Modified: 2010-03-04
Hello, just want to know how can i configure my server.xml for logging Access HTTP and HTTPS in two different file..

thanks!
0
Comment
Question by:jabcoco
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 13791091
put as child of every <Host> (HTTP and HTTPS)  element:
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="hostname_log." suffix=".txt"
            timestamp="true"/>

replace prefix attribute value with name of your host, eg:
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="http_localhost_log." suffix=".txt"
            timestamp="true"/>

0
 
LVL 10

Author Comment

by:jabcoco
ID: 13791863
Hum, well, i only have one host defined... that is <Host name="localhost"....
so all the content of my web application is under /work/Catalina/localhost
... so how can i?!?!

thanks..
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 13792822
if I undestand correctly you can put <Logger> element as child of any element. eg <Connector>

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question