| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?xml version="1.0"?>
- <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">
- <!-- $Id$ -->
- <!-- =============================================================== -->
- <!-- Configure the Jetty Server -->
- <!-- =============================================================== -->
- <Configure class="org.mortbay.jetty.Server">
- <!-- =============================================================== -->
- <!-- Configure the Request Listeners -->
- <!-- =============================================================== -->
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <!-- Add and configure a HTTP listener to port 8080 -->
- <!-- The default port can be changed using: java -Djetty.port=80 -->
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <Call name="addListener">
- <Arg>
- <New class="org.mortbay.http.SocketListener">
- <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
- <Set name="MinThreads">5</Set>
- <Set name="MaxThreads">50</Set>
- <Set name="MaxIdleTimeMs">30000</Set>
- <Set name="LowResourcePersistTimeMs">1000</Set>
- <Set name="ConfidentialPort">8443</Set>
- <Set name="IntegralPort">8443</Set>
- <Set name="PoolName">main</Set>
- </New>
- </Arg>
- </Call>
-
- <Call name="instance" class="org.mortbay.util.Log">
- <Call name="add">
- <Arg>
- <New class="org.mortbay.util.OutputStreamLogSink">
- <Set name="filename"><SystemProperty name="jetty.home" default="."/>/logs/yyyy_mm_dd.jetty.log</Set>
- <Set name="retainDays">90</Set>
- <Set name="append">true</Set>
- <Set name="logLabels">true</Set>
- <Set name="logStackSize">true</Set>
- <Set name="logStackTrace">false</Set>
- <Set name="logOneLine">false</Set>
- <Set name="logTimeZone">GMT</Set>
- <Call name="start"/>
- </New>
- </Arg>
- </Call>
- </Call>
- <!-- =============================================================== -->
- <!-- Configure the Contexts -->
- <!-- =============================================================== -->
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <!-- Add a all web application within the webapps directory. -->
- <!-- + No virtual host specified -->
- <!-- + Look in the webapps directory relative to jetty.home or . -->
- <!-- + Use the webdefault.xml resource for the defaults descriptor -->
- <!-- + Upack the war file -->
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <Set name="rootWebApp">root</Set>
- <Call name="addWebApplications">
- <Arg></Arg>
- <Arg><SystemProperty name="jetty.home" default="."/>/webapps/</Arg>
- <Arg><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Arg>
- <Arg type="boolean">true</Arg>
- </Call>
- <!-- =============================================================== -->
- <!-- Configure the Other Server Options -->
- <!-- =============================================================== -->
- <Set name="requestsPerGC">2000</Set>
- <Set name="statsOn">false</Set>
- <Call name="addRealm">
- <Arg>
- <New class="net.sf.acegisecurity.adapters.jetty.JettyAcegiUserRealm">
- <Arg>Spring Powered Realm</Arg>
- <Arg>my_password</Arg>
- <Arg>etc/acegisecurity.xml</Arg>
- </New>
- </Arg>
- </Call>
-
- </Configure>
|