its my first post here so I hope im doing it in the right place.
Im setting up a DEV environment in Ubuntu, and being a software developer not really a sysadmin or application manager, I am confused in some steps.
At the moment I have the running servers of production, but they are two different machines, having two different IPs, lets say Backend 18.104.22.168 Frontend 22.214.171.124
Now, i would not like to change the code and configuration, so to maintain the same structure as in PROD. That being said: I want to get everything in ONE Ubuntu server machine, with lets say IP 10.1.1.1.
Knowing that what I have: Backend - comprised of Liferay (tomcat server port 8080) Solr Master (port 8983) with Jetty Some custom made J2SE applications who communicate through webservices with liferay (calling on port 8080)
Frontend (lets say IP 192.168.1.2) - comprised of Solr Slave (port 8983) with Jetty HTML code+JS+CSS.. (apache 2 HTTP server)
I would know how to achieve this for different websites running on an apache2 http server...but since I have as well Solr and Liferay and Webservices, im confused.
Is there a way that my server 10.1.1.1 would be redirecting the calls to/from 192.168.1.1 and 192.168.1.2 to the correct application servers of backend and frontend in 10.1.1.1?
Maybe through some kind of proxy virtual network adapter?
Thank you a lot!!