Redirect subdomain to IP and port, while masking redirect

ohjohnsen

Member
Nov 19, 2017
6
0
1
Norway
cPanel Access Level
Website Owner
Hello.

I want to point a subdomain on my domain to a fixed IP address and port number, while keeping the original URL in the address field.

In short, URL 'confluence.mydomain.com' points to '123.123.123.123:8090' while keeping 'confluence.mydomain.com' in the address field.

I've added an A record pointing the 'confluence' subdomain to the static IP address, but I still have to add the port number. Is there any way around this, so I don't have to use the port number?

As I am an end user, I believe my registrar might have blocked access to Apache server .conf files that I'm seeing references here on the forum to. So it would be very handy if this could be done by e.g. adding confluence as a subdomain rather than an A record, and add entries to e.g. a .htaccess file to redirect to the static IP and port while masking the redirect.

Thank you for any assistance.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You'd need root access to the server to accomplish this using a solution like the one on the following thread:

Jira mod_proxy subdomain

I recommend checking with your hosting provider to see if they can help set it up.

Thank you.