mirror of https://github.com/apache/lucene.git
83 lines
2.2 KiB
XML
83 lines
2.2 KiB
XML
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||
|
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
|
||
|
|
||
|
<!--
|
||
|
This is a Jetty HTTP admin server configuration file. This configuration
|
||
|
uses the generic org.mortbay.util.XmlConfiguration class to call
|
||
|
the normal org.mortbay.http.HttpServer configuration API from
|
||
|
within an XML script.
|
||
|
|
||
|
The format of this file is described in the configure.dtd file.
|
||
|
|
||
|
The API that can be called by this file is described in the
|
||
|
Javadoc for Jetty.
|
||
|
|
||
|
$Id: admin.xml,v 1.28 2005/01/16 00:22:20 gregwilkins Exp $
|
||
|
-->
|
||
|
|
||
|
<Configure class="org.mortbay.jetty.Server">
|
||
|
<Call name="addListener">
|
||
|
<Arg>
|
||
|
<New class="org.mortbay.http.SocketListener">
|
||
|
<Set name="Host">localhost</Set>
|
||
|
<Set name="Port">8081</Set>
|
||
|
<Set name="MinThreads">1</Set>
|
||
|
<Set name="MaxThreads">5</Set>
|
||
|
<Set name="MaxIdleTimeMs">30000</Set>
|
||
|
</New>
|
||
|
</Arg>
|
||
|
</Call>
|
||
|
|
||
|
<Call name="addRealm">
|
||
|
<Arg>
|
||
|
<New class="org.mortbay.http.HashUserRealm">
|
||
|
<Arg>Admin Realm</Arg>
|
||
|
<Put name="admin">admin</Put>
|
||
|
<Call name="addUserToRole"><Arg>admin</Arg><Arg>server-administrator</Arg></Call>
|
||
|
</New>
|
||
|
</Arg>
|
||
|
</Call>
|
||
|
|
||
|
<Call name="addContext">
|
||
|
<Arg>/</Arg>
|
||
|
<Set name="realmName">Admin Realm</Set>
|
||
|
<Set name="authenticator"><New class="org.mortbay.http.BasicAuthenticator"/></Set>
|
||
|
|
||
|
<Call name="addHandler">
|
||
|
<Arg><New class="org.mortbay.http.handler.SecurityHandler"/></Arg>
|
||
|
</Call>
|
||
|
<Call name="addSecurityConstraint">
|
||
|
<Arg>/</Arg>
|
||
|
<Arg><New class="org.mortbay.http.SecurityConstraint">
|
||
|
<Arg>Admin</Arg>
|
||
|
<Arg>server-administrator</Arg>
|
||
|
</New></Arg>
|
||
|
</Call>
|
||
|
|
||
|
<Call name="addServlet">
|
||
|
<Arg>Admin</Arg>
|
||
|
<Arg>/</Arg>
|
||
|
<Arg>org.mortbay.servlet.AdminServlet</Arg>
|
||
|
</Call>
|
||
|
|
||
|
<Call name="addServlet">
|
||
|
<Arg>Debug</Arg>
|
||
|
<Arg>/debug/*</Arg>
|
||
|
<Arg>org.mortbay.servlet.Debug</Arg>
|
||
|
</Call>
|
||
|
|
||
|
<Call name="setAttribute">
|
||
|
<Arg>org.mortbay.http.HttpServer</Arg>
|
||
|
<Arg><Call name="getHttpServer"/></Arg>
|
||
|
</Call>
|
||
|
</Call>
|
||
|
|
||
|
<Set name="anonymous">true</Set>
|
||
|
<Set name="requestsPerGC">1</Set>
|
||
|
|
||
|
</Configure>
|
||
|
|
||
|
|
||
|
|
||
|
|