Welcome Guest, Not a member yet? Register   Sign In
NGINX: Multiple CI Apps on a Single Domain Not Working
#2

(This post was last modified: 07-10-2024, 02:18 PM by bogus.)

Basically you need to use two different <VirtualHost> entries in your virtual host configuration file.
To my knowing (and if it is okay to do so I don't do it) it is not possible to have two ServerName entries in ONE <VirtualHost> directive.
Further I'd first get rid of all the 443 related stuff for testing - its just confusing and you can add that, configure and test it later when the rest is up and running.
The two <VirtualHosts> entries each need to have a <DocumentRoot> of course and an own ServerName part which is used to identify the host.
I'd also put much of the stuff you posted in the main configuration file.
It makes things easier to configure, files slicker and many configuration settings need to be defined once only anyway.

Hope that helps.
The only absolute knowledge attainable by man is that life is meaningless. (Tolstoi)
Reply


Messages In This Thread
RE: NGINX: Multiple CI Apps on a Single Domain Not Working - by bogus - 07-10-2024, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB