0

I have established 2 domains on my tomcat 6 running on CentOS. But now my logging is broken. All logs except catalina.out are empty. I would like to have one log for each domain. I found a lot of similar tasks in the web but no solution till now. I would prefer to have the most simple solution. Here is my server.xml:

<Engine name="Catalina" defaultHost=...>
  <Host name="domain1.xy.com"  appBase="/home/domain1/tomcat/webapps"
        ...
  </Host>
  <Host name="domain2.xy.com"  appBase="/home/domain2/tomcat/webapps"
        ...
  </Host>
</Engine>
0

I found it, it's quite easy: Just use the "valve" element inside the "host" element: This way you can have one standard log for each domain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.