Created
December 25, 2019 06:11
-
-
Save AvihayTsayeg/1b4da755d3747ec9503e96beb40c7049 to your computer and use it in GitHub Desktop.
tomcat9 server.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Server port="8005" shutdown="SHUTDOWN"> | |
| <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> | |
| <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> | |
| <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> | |
| <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> | |
| <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> | |
| <GlobalNamingResources> | |
| <Resource name="UserDatabase" auth="Container" | |
| type="org.apache.catalina.UserDatabase" | |
| description="User database that can be updated and saved" | |
| factory="org.apache.catalina.users.MemoryUserDatabaseFactory" | |
| pathname="conf/tomcat-users.xml" /> | |
| </GlobalNamingResources> | |
| <Service name="Catalina"> | |
| <Connector port="8080" protocol="HTTP/1.1" | |
| connectionTimeout="20000" | |
| redirectPort="8443" /> | |
| <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true" | |
| maxThreads="150" scheme="https" > | |
| <SSLHostConfig> | |
| <Certificate certificateKeystoreFile="/home/<username.need.to.be.replaced>/.keystore" | |
| type="RSA" /> | |
| </SSLHostConfig> | |
| </Connector> | |
| <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> | |
| <Engine name="Catalina" defaultHost="localhost"> | |
| <Realm className="org.apache.catalina.realm.LockOutRealm"> | |
| <Realm className="org.apache.catalina.realm.UserDatabaseRealm" | |
| resourceName="UserDatabase"/> | |
| </Realm> | |
| <Host name="localhost" appBase="webapps" | |
| unpackWARs="true" autoDeploy="true"> | |
| <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" | |
| prefix="localhost_access_log" suffix=".txt" | |
| pattern="%h %l %u %t "%r" %s %b" /> | |
| </Host> | |
| </Engine> | |
| </Service> | |
| </Server> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment