You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
5.0 KiB
106 lines
5.0 KiB
Index: conf/server.xml |
|
--- conf/server.xml.orig 2016-11-06 19:39:53.000000000 +0100 |
|
+++ conf/server.xml 2016-11-12 08:15:44.146125953 +0100 |
|
@@ -19,7 +19,7 @@ |
|
define subcomponents such as "Valves" at this level. |
|
Documentation at /docs/config/server.html |
|
--> |
|
-<Server port="8005" shutdown="SHUTDOWN"> |
|
+<Server address="127.0.0.1" port="8005" shutdown="SHUTDOWN"> |
|
<!-- TomEE plugin for Tomcat --> |
|
<Listener className="org.apache.tomee.catalina.ServerListener" /> |
|
<Listener className="org.apache.catalina.startup.VersionLoggerListener" /> |
|
@@ -68,13 +68,13 @@ |
|
APR (HTTP/AJP) Connector: /docs/apr.html |
|
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 |
|
--> |
|
- <Connector port="8080" protocol="HTTP/1.1" |
|
+ <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1" |
|
connectionTimeout="20000" |
|
redirectPort="8443" xpoweredBy="false" server="Apache TomEE" /> |
|
<!-- A "Connector" using the shared thread pool--> |
|
<!-- |
|
<Connector executor="tomcatThreadPool" |
|
- port="8080" protocol="HTTP/1.1" |
|
+ address="127.0.0.1" port="8080" protocol="HTTP/1.1" |
|
connectionTimeout="20000" |
|
redirectPort="8443" /> |
|
--> |
|
@@ -83,7 +83,7 @@ |
|
using the JSSE engine, the JSSE configuration attributes must be used. |
|
--> |
|
<!-- |
|
- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" |
|
+ <Connector address="127.0.0.1" port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" |
|
maxThreads="150" SSLEnabled="true"> |
|
<SSLHostConfig> |
|
<Certificate certificateKeystoreFile="conf/localhost-rsa.jks" |
|
@@ -97,7 +97,7 @@ |
|
the OpenSSL configuration attributes must be used. |
|
--> |
|
<!-- |
|
- <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" |
|
+ <Connector address="127.0.0.1" port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" |
|
maxThreads="150" SSLEnabled="true" > |
|
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" xpoweredBy="false" server="Apache TomEE" /> |
|
<SSLHostConfig> |
|
@@ -110,7 +110,7 @@ |
|
--> |
|
|
|
<!-- Define an AJP 1.3 Connector on port 8009 --> |
|
- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> |
|
+ <Connector address="127.0.0.1" port="8009" protocol="AJP/1.3" redirectPort="8443" /> |
|
|
|
|
|
<!-- An Engine represents the entry point (within Catalina) that processes |
|
@@ -154,7 +154,7 @@ |
|
<!-- Access log processes all example. |
|
Documentation at: /docs/config/valve.html |
|
Note: The pattern used is equivalent to using pattern="common" --> |
|
- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" |
|
+ <Valve className="org.apache.catalina.valves.AccessLogValve" directory="@l_prefix@/var/tomcat/log" |
|
prefix="localhost_access_log" suffix=".txt" |
|
pattern="%h %l %u %t "%r" %s %b" /> |
|
|
|
Index: conf/tomcat-users.xml |
|
--- conf/tomcat-users.xml.orig 2016-11-12 08:15:44.146125000 +0100 |
|
+++ conf/tomcat-users.xml 2016-11-12 08:18:22.206156837 +0100 |
|
@@ -19,32 +19,12 @@ |
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" |
|
version="1.0"> |
|
-<!-- |
|
- NOTE: By default, no user is included in the "manager-gui" role required |
|
- to operate the "/manager/html" web application. If you wish to use this app, |
|
- you must define such a user - the username and password are arbitrary. It is |
|
- strongly recommended that you do NOT use one of the users in the commented out |
|
- section below since they are intended for use with the examples web |
|
- application. |
|
---> |
|
-<!-- |
|
- NOTE: The sample user and role entries below are intended for use with the |
|
- examples web application. They are wrapped in a comment and thus are ignored |
|
- when reading this file. If you wish to configure these users for use with the |
|
- examples web application, do not forget to remove the <!.. ..> that surrounds |
|
- them. You will also need to set the passwords to something appropriate. |
|
---> |
|
-<!-- |
|
- <role rolename="tomcat"/> |
|
- <role rolename="role1"/> |
|
- <user username="tomcat" password="<must-be-changed>" roles="tomcat"/> |
|
- <user username="both" password="<must-be-changed>" roles="tomcat,role1"/> |
|
- <user username="role1" password="<must-be-changed>" roles="role1"/> |
|
---> |
|
- <!-- Activate those lines to get access to TomEE GUI if added (tomee-webaccess) --> |
|
- <!-- |
|
- <role rolename="tomee-admin" /> |
|
+ <role rolename="admin-gui"/> |
|
+ <role rolename="admin-script"/> |
|
+ <role rolename="manager-gui"/> |
|
+ <role rolename="manager-script"/> |
|
+ <user username="admin" password="@l_password@" roles="admin-gui,admin-script,manager-gui,manager-script"/> |
|
+ <role rolename="tomee-admin"/> |
|
<user username="tomee" password="tomee" roles="tomee-admin,manager-gui" /> |
|
- --> |
|
</tomcat-users> |
|
|
|
|