> From: Caldarale, Charles R > Subject: Server.xml Host Configuration
> Remove the <Context> element; it should never be placed in server.xml and you don't need one. As an addendum. If you want to remove the <Context> element but still create an access log, you can create a context.xml file. Place it as follows (from http://tomcat.apache.org/tomcat-6.0-doc/config/context.html): $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml extension) will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml. [In your case, you would call it ROOT.xml] /META-INF/context.xml inside the application files In your case it would be pretty simple. If you place the file at "$CATALINA_HOME/conf/[enginename]/[hostname]/", ROOT.xml would contain the following: <Context> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="local_roller_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> </Context> In this configuration, you shouldn't need the "path" attribute, and if you set appBase correctly, you shouldn't need "docBase." -- Bill -----Original Message----- From: Tomcat User6 [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 2:02 PM To: users@tomcat.apache.org Subject: Server.xml Host Configuration Hi All, I am new to configuring Server.xml for tomcat. I am using Tomcat 6.0. I have an application called Roller from apache for blogging purposes. I want to configure its host by forum.abc123.com. I did the configuration as below: <Host name="forum.abc123.com" appBase="/usr/local/apache-tomcat-6.0.16/webapps/roller" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>forum.abc123.com</Alias> <Context docBase="" path="/" /> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="local_roller_access_log." suffix=".txt" pattern="common" resolveHosts="false"/></Host> This application is under the "/usr/local/apache-tomcat-6.0.16/webapps/roller" directory and that is not a WAR file but a directory. When I clicked on Web URL with forum.abc123.com, it is showing me site but with no colors and styles as they are in original. Log sile says that it is not finding any of the files and that is why none of the links on the first page are aslo working. I am sure that, i am doing something wrong in configuration. Please help me out. Thank you in advance. -- View this message in context: http://www.nabble.com/Server.xml-Host-Configuration-tp18575305p18575305.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]