Running Multiple Applications on the Same Application Server - AWS OpsWorks

Running Multiple Applications on the Same Application Server


The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers. We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post or through AWS Premium Support.


The information in this topic does not apply to Node.js apps.

If you have multiple applications of the same type, it is sometimes more cost-effective to run them on the same application server instances.

To run multiple applications on the same server
  1. Add an app to the stack for each application.

  2. Obtain a separate subdomain for each app and map the subdomains to the application server's or load balancer's IP address.

  3. Edit each app's configuration to specify the appropriate subdomain.

For more information on how to perform these tasks, see Using Custom Domains.


If your application servers are running multiple HTTP applications, you can use Elastic Load Balancing for load-balancing. For multiple HTTPS applications, you must either terminate the SSL connection at the load balancer or create a separate stack for each application. HTTPS requests are encrypted, which means that if you terminate the SSL connection at the servers, the load balancer cannot check the domain name to determine which application should handle the request.