Sagewire Logo

Multiple web applications, single virtual host

2 Message(s) by 2 Author(s) originally posted in java databases


From: Monica Date:   Wednesday, April 25, 2007
Hello everyone,

I am attempting to create access logs on a per web application basis,
using a single virtual host in my server.xml file. Here is what I
have so far:

<Host name="www.mysite.com" autoDeploy="false"
deployOnStartup="false"
deployXML="false">

<alias>www.mysite.com</alias>
<Valve
className="org.apache.catalina.valves.Access LogValve"
prefix="mysite_access" suffix=".log"
pattern="common"
directory="${jboss.server.home.dir}/log"/>

<Context path="" docBase="html" debug="0" reloadable="true"/>
<DefaultContext cookies="true" crossContext="true"
override="true"/>

<Context path="/Web1" docBase="C:\jboss-4.0.1RC2\server\default
\deploy" debug="0" reloadable="true">

<Valve
className="org.apache.catalina.valves.AccessLogValve"
directory="${jboss.server.home.dir}/log"
prefix="my_web1" suffix=".log" resolveHosts="false" pattern="combined"/
</Context>


<Context path="/images" appBase="" docBase="C:
\jboss-4.0.1RC2\server\default\images" debug="99">

</Context>
<Context path="/Web2" docBase="C:\jboss-4.0.1RC2\server\default
\deploy" debug="0" reloadable="true">

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="${jboss.server.home.dir}/log"
prefix="my_web2" suffix=".log" resolveHosts="false" pattern="combined"/
</Context>


</Host>

Everything is working as it should, except that when I hit www.mysite.com/Web1
or www.mysite.com/Web2 the only log that gets updated is
mysite_access.

Can someone please explain to me how to go about writing to the
my_web1.log and my_web2.log files for those applications?

Thanks,
Monica


From: Jan Date:   Tuesday, August 21, 2007
Hi,

please have a look at this guide, it'll help you to find the answer you
need: http://catb.org/~esr/faqs/smart-questions.html#forum

Best regards,
Jan

--
_________________________________________________________________________
insOMnia - We never sleep...
http://www.insOMnia-hq.de



Next Message: URGENT need soln to this problem.. for PROJECT interview...


Blogs related to Multiple web applications, single virtual host

Dedicated Rapid Deploy Server Solution, Released by Layered ...
Cbeyond offers more than 20 applications including local and long-distance voice, broadband Internet, mobile, BlackBerry, broadband laptop access, voicemail, email, web hosting, fax-to-email, data backup, file-sharing and virtual ...

J2EE - Job Interview Questions - Part 13
A Web application that uses J2EE technology written so that it can be deployed in a Web container distributed across multiple Java virtual machines running on the same host or different hosts. The deployment descriptor for such an ...

Colocation Web Hosting Management Firm, VeriCenter, to be Acquired ...
Ensim Pro is a single-server hosting automation and control panel solution for Linux and Windows based hosted web sites, email and online applications. As the industry’s most powerful single-server hosting automation software ...

Linux and Windows Interoperability: On the Metal and On the Wire
Once applications from multiple platforms are running on a single server, they need to be managed – ideally from a single console. Finally, they must still meet the demands of security and auditability, so regardless of OS they must be ...

Java Basics
Also, we can get multiple connections for a single server. 6) What are the seven layers of OSI model? ANSWER : Application, Presentation, Session, Transport, Network, DataLink, Physical Layer. What Transport Layer does? ...

Yahoo! Executive, Garners Technical Award for Data Mining ...
SiteGround web hosting has always been a strong supporter of Open Source applications, with a collection of over 100 free themes and templates for the most popular CMS, blog, gallery and forum tools; as well as over 30 tutorials for ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional