server.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE server-xml [
  3. <!ENTITY vhost-localhost SYSTEM "file:///usr/local/tomcat/conf/vhost/localhost.xml">
  4. ]>
  5. <Server port="8006" shutdown="SHUTDOWN">
  6. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
  7. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  8. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
  9. <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
  10. <!--
  11. <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="8081" rmiServerPortPlatform="8082" />
  12. -->
  13. <GlobalNamingResources>
  14. <Resource name="UserDatabase" auth="Container"
  15. type="org.apache.catalina.UserDatabase"
  16. description="User database that can be updated and saved"
  17. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  18. pathname="conf/tomcat-users.xml" />
  19. </GlobalNamingResources>
  20. <Service name="Catalina">
  21. <Connector port="8080"
  22. protocol="org.apache.coyote.http11.Http11AprProtocol"
  23. connectionTimeout="20000"
  24. redirectPort="8443"
  25. maxThreads="1000"
  26. minSpareThreads="20"
  27. acceptCount="1000"
  28. maxHttpHeaderSize="65536"
  29. disableUploadTimeout="true"
  30. useBodyEncodingForURI="true"
  31. enableLookups="false"
  32. URIEncoding="UTF-8" />
  33. <Engine name="Catalina" defaultHost="localhost">
  34. <Realm className="org.apache.catalina.realm.LockOutRealm">
  35. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  36. resourceName="UserDatabase"/>
  37. </Realm>
  38. &vhost-localhost;
  39. </Engine>
  40. </Service>
  41. </Server>