Redirect all domains but one to a secondary server
#1
Redirect all domains but one to a secondary server
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!
Reply
#2
RE: Redirect all domains but one to a secondary server
Why not use a control panel that can use multible php versions and set you can change them per domeinname and is stil maintained?
like Hestia?

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Server at home registered with GoDaddy not working Mustang351cca 3 12 ,455 02-14-2018, 03:46 PM
Last Post: TGates
Adding Multiple Domains Brandonlipman 3 12 ,641 05-10-2016, 04:33 PM
Last Post: Me.B
redirect domain and mask ports with vhost? Topmatica 1 6 ,717 03-10-2016, 01:53 AM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 1 Guest(s)