Change Tomcat Settings on Amazon ElasticBeanstalk

3

I'm having difficulty assigning the JDBCHealm properties to the tomcat server. How to include new properties in the server.xml file or in the tomcat-users.xml file when the app is on the amazon server hosted with tomcat server as elasticbeanstalk?

    
asked by anonymous 15.09.2016 / 22:14

1 answer

2

You can override the settings as follows:

Create a directory within your webapp , and paste your server.xml . After that, create an xml: server-update.config , with the following code:

container_commands: 
  replace-config: 
    command: cp .ebextensions/server.xml /etc/tomcat7/server.xml

This information can be found at: link

Note that as above, your server.xml will completely replace the existing one, if you just want to override some settings or insert others, look at the form below, soEN: link

    
19.09.2016 / 16:15