Hello, I have a question regerding logging in Tomcat. When I define a Virtual Host in Apache i would put
<VirtualHost *> DocumentRoot /home/gunnar/public-www/opbit/ ServerName <somename> CustomLog /home/gunnar/public-www/logs/opbit.log full </VirtualHost> Or even maybe ErrorLog logs/public-www-error.log TransferLog logs/public-www-access.log instead of customlog. Anyway, I want to be able to perform the same when I define my VirtualHost in a apps-<somename>.xml file. Is there some directive that I can put before a line in my xml file to get it in the auto/mod_jk.conf file that is automaticly generated with tomcat.sh start -jkconf? Something like # CustomLog /home/gunnar/public-www/logs/opbit.log ful so that jkconf creates the file with CustomLog /home/gunnar/public-www/logs/opbit.log ful between the <VirtualHost *> directive for that virtual domain? So if this is one of the apps-.xml file for example <?xml version="1.0" encoding="ISO-8859-1"?> <Server> <Host name="www.example.com" > <Context path="" docBase="/var/www-data/example.com/"> <LogSetter name="example.com.log" path="/usr/local/apache_1.3.23/logs/" /> </Context> </Host> </Server> The output of this is : <VirtualHost *> ServerName www.opbit.com DocumentRoot "/home/gunnar/public-www/opbit" <Directory "/var/www-data/example.com/"> Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/META-INF/*"> AllowOverride None deny from all </Location> JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 </VirtualHost> I want something like "CustomLog /home/gunnar/public-www/logs/opbit.log full" inthere when the file is generated. Thanks for any responses! Elm -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>