tomcat.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Index: conf/server.xml
  2. --- conf/server.xml.orig 2012-03-31 16:45:11.000000000 +0200
  3. +++ conf/server.xml 2012-04-06 10:38:11.000000000 +0200
  4. @@ -19,7 +19,7 @@
  5. define subcomponents such as "Valves" at this level.
  6. Documentation at /docs/config/server.html
  7. -->
  8. -<Server port="8005" shutdown="SHUTDOWN">
  9. +<Server address="127.0.0.1" port="8005" shutdown="SHUTDOWN">
  10. <!-- Security listener. Documentation at /docs/config/listeners.html
  11. <Listener className="org.apache.catalina.security.SecurityListener" />
  12. -->
  13. @@ -67,13 +67,13 @@
  14. APR (HTTP/AJP) Connector: /docs/apr.html
  15. Define a non-SSL HTTP/1.1 Connector on port 8080
  16. -->
  17. - <Connector port="8080" protocol="HTTP/1.1"
  18. + <Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
  19. connectionTimeout="20000"
  20. redirectPort="8443" />
  21. <!-- A "Connector" using the shared thread pool-->
  22. <!--
  23. <Connector executor="tomcatThreadPool"
  24. - port="8080" protocol="HTTP/1.1"
  25. + address="127.0.0.1" port="8080" protocol="HTTP/1.1"
  26. connectionTimeout="20000"
  27. redirectPort="8443" />
  28. -->
  29. @@ -82,13 +82,13 @@
  30. connector should be using the OpenSSL style configuration
  31. described in the APR documentation -->
  32. <!--
  33. - <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  34. + <Connector address="127.0.0.1" port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  35. maxThreads="150" scheme="https" secure="true"
  36. clientAuth="false" sslProtocol="TLS" />
  37. -->
  38. <!-- Define an AJP 1.3 Connector on port 8009 -->
  39. - <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  40. + <Connector address="127.0.0.1" port="8009" protocol="AJP/1.3" redirectPort="8443" />
  41. <!-- An Engine represents the entry point (within Catalina) that processes
  42. @@ -132,7 +132,7 @@
  43. <!-- Access log processes all example.
  44. Documentation at: /docs/config/valve.html
  45. Note: The pattern used is equivalent to using pattern="common" -->
  46. - <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  47. + <Valve className="org.apache.catalina.valves.AccessLogValve" directory="@l_prefix@/var/tomcat/log"
  48. prefix="localhost_access_log." suffix=".txt"
  49. pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  50. Index: conf/tomcat-users.xml
  51. --- conf/tomcat-users.xml.orig 2012-03-31 16:45:11.000000000 +0200
  52. +++ conf/tomcat-users.xml 2012-04-06 10:38:21.000000000 +0200
  53. @@ -16,21 +16,9 @@
  54. limitations under the License.
  55. -->
  56. <tomcat-users>
  57. -<!--
  58. - NOTE: By default, no user is included in the "manager-gui" role required
  59. - to operate the "/manager/html" web application. If you wish to use this app,
  60. - you must define such a user - the username and password are arbitrary.
  61. --->
  62. -<!--
  63. - NOTE: The sample user and role entries below are wrapped in a comment
  64. - and thus are ignored when reading this file. Do not forget to remove
  65. - <!.. ..> that surrounds them.
  66. --->
  67. -<!--
  68. - <role rolename="tomcat"/>
  69. - <role rolename="role1"/>
  70. - <user username="tomcat" password="tomcat" roles="tomcat"/>
  71. - <user username="both" password="tomcat" roles="tomcat,role1"/>
  72. - <user username="role1" password="tomcat" roles="role1"/>
  73. --->
  74. + <role rolename="admin-gui"/>
  75. + <role rolename="admin-script"/>
  76. + <role rolename="manager-gui"/>
  77. + <role rolename="manager-script"/>
  78. + <user username="admin" password="@l_password@" roles="admin-gui,admin-script,manager-gui,manager-script"/>
  79. </tomcat-users>