Created
January 26, 2015 14:02
-
-
Save vishwasbabu/92cc79c19522deffba01 to your computer and use it in GitHub Desktop.
Tomcat Configurations on Demo Server
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'?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
--> | |
<!-- The contents of this file will be loaded for each web application --> | |
<Context allowLinking="true"> | |
<!-- Default set of monitored resources --> | |
<WatchedResource>WEB-INF/web.xml</WatchedResource> | |
<!-- Uncomment this to disable session persistence across Tomcat restarts --> | |
<!-- | |
<Manager pathname="" /> | |
--> | |
<!-- Uncomment this to enable Comet connection tacking (provides events | |
on session expiration as well as webapp lifecycle) --> | |
<!-- | |
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> | |
--> | |
</Context> |
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.core.AprLifecycleListener" SSLEngine="off" /> | |
--> | |
<Listener className="org.apache.catalina.core.JasperListener" /> | |
<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" | |
/> | |
<Resource type="javax.sql.DataSource" | |
name="jdbc/mifosplatform-tenants" | |
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" | |
driverClassName="com.mysql.jdbc.Driver" | |
url="jdbc:mysql://localhost:3306/mifosplatform-tenants" | |
username="secret" | |
password="secret" | |
initialSize="3" | |
maxActive="10" | |
maxIdle="6" | |
minIdle="3" | |
validationQuery="SELECT 1" | |
testOnBorrow="true" | |
testOnReturn="true" | |
testWhileIdle="true" | |
timeBetweenEvictionRunsMillis="30000" | |
minEvictableIdleTimeMillis="60000" | |
logAbandoned="true" | |
suspectTimeout="60" | |
/> | |
</GlobalNamingResources> | |
<Service name="Catalina"> | |
<!-- uncomment hte 8080 connector below if you want to support http with redirection to https --> | |
<!-- | |
<Connector port="8080" protocol="HTTP/1.1" | |
connectionTimeout="20000" | |
redirectPort="8443" | |
URIEncoding="UTF-8" | |
compression="force" | |
compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css" /> | |
--> | |
<Connector protocol="org.apache.coyote.http11.Http11Protocol" | |
port="443" maxThreads="200" scheme="https" | |
secure="true" SSLEnabled="true" | |
keystoreFile="/home/ubuntu/hidden_path.jks" | |
keystorePass="vinolia" | |
keyAlias="server" | |
clientAuth="false" sslProtocol="TLS" | |
URIEncoding="UTF-8" | |
compression="force" | |
compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css"/> | |
<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=".log" | |
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