This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by: max783


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

Forum Jump:


Users browsing this thread: 1 Guest(s)