This content has been marked as final.
Show 1 reply
-
1. Re: Virtual Hosts not Logging
brian_a Oct 4, 2004 5:22 PM (in response to brian_a)Follow-up:
It appears that whatever host matches the will get logged; however, all aliases continue to work but get ignored with logging.
Example:<Host name="sample.com"> <Alias>sample.com</Alias> <Alias>www.sample.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="sample_" suffix=".log" pattern="common" directory="${home.base}/log/sample"/> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host>
Going to sample.com with your browser will direct to the correct deployment and creates a log entry. However, directing the browser to www.sample.com will direct to the correct deployment but will not get logged.
Any thoughts?