Welcome! Log In Create A New Profile

Advanced

Running multiple web apps in nginx

Posted by Nisari 
Running multiple web apps in nginx
May 07, 2018 03:22AM
I want to run multiple web apps(a.mydomain.com and b.mydomain.com) under my domain. My setup consists of an ELB and 2 EC2 instances(with Nginx-cloned and installed from git and php).

I bought a certificate for *.mydomain.com on ACM for the ELB. In the Nginx configuration, I added separate HTTP and https blocks for a and b apps. But, when both server blocks are added, I get the first page of each of the web apps after which a 404 error is thrown. When these apps are separately configured, they work as expected.

What is the Nginx configuration to be given in order to run multiple https web apps under one ELB?
Re: Running multiple web apps in nginx
March 05, 2019 11:38AM
i am also been trying to know about it and hope some one can answer it
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready