2
I have a VPS server that is running with an Apache server (port 80), a Tomcat server (port 8090) and a Wildfly on port 8080.
But I wanted to know if there is a way to configure a domain for each port, for example: My server has ip x.x.x.x
, when the user enters dominio1.com.br
it will be redirected to that ip (at port 80 of course), when it enters dominio2.com.br
it will be redirected to port x.x.x.x:8090
and when he tries to get into dominio3.com.br
he would be redirected to the wildfly at port 8080.
Can you do that? I saw that you can do something similar to apache’s Virtual Host, only it only redirects between directories but not between ports...
I think this will help you "How to redirect DNS to Different ports"
– RodrigoBorth
@Rodrigoborth, I didn’t understand very well... in
name
do I put what? My main domain? And onTarget
(that in the case of my Cpanel isHostname
) I put the domain to which I want to redirect?– Eduardo Marwell
research a little more about SRV Records, I never had to do it so I’m not sure how to help you
– RodrigoBorth