Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect subdomain to IP and port, while masking redirect

Discussion in 'Bind / DNS / Nameserver Issues' started by ohjohnsen, Nov 22, 2017.

  1. ohjohnsen

    ohjohnsen Registered

    Joined:
    Nov 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page