Redirect all domains but one to a secondary server
11-30-2021, 01:36 AM
(This post was last modified: 12-01-2021, 03:15 AM by max783.)
Hi there!
I'm quite new here. I have a VMware Hypervisor which I use to host all sorts of scripts for my business. Nothing too fancy, but one of the scripts is really old using PHP5.6 and the other is using PHP7.2.
I first tried using virtualmin, which works great for PHP7.2 but doesn't allow two sets of PHP at the same time (bugged since 2018) so I've installed Sentora on an old Ubu14 VM.
Also tried installing mod_proxy too. Now here's the tricky part.
I have a bunch of domains that should point towards the virtualmin server, but only two (sentora.domain.com and domain.com) that should remain local (Local server 166)
How do I redirect to Local 100 (Virtualmin) from Local 166 (Sentora) in an easy way that does not require much thinking?
I must say I'm a complete and total noob here, and I basically got here by trial and error. Thanks so much in advance!!
If you have some instructions for me to follow or another thread, even better. make sure they are idiot proof.
Edit - I just finished enabling mod_proxy and using ProxyPass and it works like a charm!
I'm quite new here. I have a VMware Hypervisor which I use to host all sorts of scripts for my business. Nothing too fancy, but one of the scripts is really old using PHP5.6 and the other is using PHP7.2.
I first tried using virtualmin, which works great for PHP7.2 but doesn't allow two sets of PHP at the same time (bugged since 2018) so I've installed Sentora on an old Ubu14 VM.
Also tried installing mod_proxy too. Now here's the tricky part.
I have a bunch of domains that should point towards the virtualmin server, but only two (sentora.domain.com and domain.com) that should remain local (Local server 166)
How do I redirect to Local 100 (Virtualmin) from Local 166 (Sentora) in an easy way that does not require much thinking?
I must say I'm a complete and total noob here, and I basically got here by trial and error. Thanks so much in advance!!
If you have some instructions for me to follow or another thread, even better. make sure they are idiot proof.
Edit - I just finished enabling mod_proxy and using ProxyPass and it works like a charm!