Java – how to provide configuration for elastic Beanstalk Tomcat

When deploying locally to tomcat, I convert this change (below) to server XML, is there any way to provide it to elastic Beanstalk?

<Connector connectionTimeout="20000" port="8080" 
       protocol="org.apache.coyote.http11.Http11NioProtocol" 
       redirectPort="8443"/>'

Thank you“

Solution

You can now do this without providing a custom AMI Follow these instructions: http://aws.typepad.com/aws/2012/10/customize-elastic-beanstalk-using-configuration-files.html

In order to provide a custom server in webapp, XML is created The ebextensions folder, where you can customize the server XML file and add a file: server - update Config, which contains:

container_commands:
  replace-config:
  command: cp .ebextensions/server.xml /etc/tomcat7/server.xml
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>