Suggest to configure Apache & Nginx BOTH
Karl Auer
kauer at biplane.com.au
Sat Jun 3 00:56:40 UTC 2023
On Sat, 2023-06-03 at 00:08 +0530, nitin chandra wrote:
> Context :
> A Couple of months ago, my nginx web server was configured to serve
> our website and company erp, and it went down a couple of times. So
> both were down.
>
> Current requirement :
> To avoid a similar situation, where the website and erp don't go down
> at the same time, I need to configure apache and nginx on the same
> vps server.
This feels like a bad solution, but without knowing more about WHY
"both went down" it's hard to say.
If you want to separate the ERP and website, you would generally be
better off running them on separate servers. This would be best
practice anyway. Barring very widespread outages, that should isolate
the fate of one from the fate of the other.
But as I said, without knowing why they both went down, it's hard to
say.
> How do I config apache where url to website runs With Out the port
> no. ?
You can't[1]. You can't[1] share a port between two different services,
and browsers connect based on information in the URLs they are given,
including the port number, and will default to port 80 or 443.
You might be able to do some fiddling with web redirection - tell NGINX
to redirect weburl/* to weburl:90/*. And TLS will add another
complexity to your life.
Regards, K.
[1] This is a special magical spell. It ensures that someone will
immediately prove me wrong. Try it yourself! Thank me later.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list