Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. Line
  2. 1 $Id: tomcat_config.txt 206 2007-03-14 18:52:48Z mmb $
  3. 2
  4. 3 This file details the required changes to the default Tomcat configuration
  5. 4 that are required for the midware web services to work.
  6. 5
  7. 6 Deployment
  8. 7
  9. 8 In production the midware webapp will be deployed to webapps/midware-x.xx/ and
  10. 9 there will be a symlink webapps/midware which links to the latest version.
  11. 10
  12. 11 For development, to create a midware webapp in Tomcat that has a document root
  13. 12 outside the Tomcat webapps directory, put this in server.xml:
  14. 13
  15. 14 <Context path="/midware" reloadable="true"
  16. 15 docBase="C:\Documents and Settings\mboedicker\workspace\midware"
  17. 16 workDir="C:\Documents and Settings\mboedicker\workspace\midware\work">
  18. 17 </Context>
  19. 18
  20. 19 This is useful for keeping the code in your Eclipse workspace directory.
  21. 20
  22. 21 ---
  23. 22
  24. 23 SSL client
  25. 24
  26. 25 To connect to the PSX API over SSL you need the right key in the trust store.
  27. 26 Set the path to the trust store file in the web application's web.xml file.
  28. 27
  29. 28 ---
  30. 29
  31. 30 SSL server
  32. 31
  33. 32 Tomcat will only be able to be accessed using SSL. Change the SSL connector
  34. 33 section of the Tomcat server.xml file to the following:
  35. 34
  36. 35 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  37. 36 maxThreads="150" scheme="https" secure="true"
  38. 37 clientAuth="false" sslProtocol="TLS"
  39. 38 keystoreFile="/home/tomcat/security/eCare.keystore"
  40. 39 keystorePass="terakeet"
  41. 40 truststoreFile="/home/tomcat/security/eCare.truststore" />
  42. 41
  43. 42 The keystores in /home/tomcat/security/ can be found in the midware/dist
  44. 43 directory after the midware is built.
  45. 44
  46. 45 ---
  47. 46
  48. 47 Authentication
  49. 48
  50. 49 Set up users and roles in tomcat-users.xml. The users and roles should match
  51. 50 the users and roles set up in the web application's web.xml file.
  52. 51
  53. 52 <?xml version='1.0' encoding='utf-8'?>
  54. 53 <tomcat-users>
  55. 54 <role rolename="address" />
  56. 55 <role rolename="costguard" />
  57. 56 <role rolename="sonuspsx" />
  58. 57 <user username="customer1" password="tomcat" roles="costguard,sonuspsx,address" />
  59. 58 </tomcat-users>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement