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.

How to forward port 2082 > 2083

Discussion in 'General Discussion' started by gayan, Jun 21, 2009.

  1. gayan

    gayan Member

    Joined:
    Jun 21, 2009
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello guys,

    My first post here at cpanel, and this is cos i'm now a proud owner cpanel vps :)

    Anyways, my question is how do i forward the unsecure 2082/2086 ports to the secure 2083/2087 ports.

    I have already done the server tweaking so that /cpanel and /whm etc gets forwarded to the secure ports.

    BTW i have noted that when i use http://domain.tld:2083 cpanel would automatically redirect to https, so just a port redirect/forward would be enough.

    Can anyone help?

    Thanks
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If someone types :2082 directly, there is no setting to redirect them to :2083. You would need to configure your firewall to do this.
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I thought about that too, but the settings in Tweak Settings do not impact when a user types :2082 directly. They only affect when a user types example.com/cpanel etc.
     
  5. TapanB

    TapanB Active Member

    Joined:
    Nov 29, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I would like an answer for this too.

    Thanks.
     
  6. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston, TX
    Seems like an addition to the Apache directives would fix this. I just have no idea where to put these changes.

    Code:
    RewriteCond %{SERVER_PORT} ^2082$
    RewriteRule .* https://%{SERVER_NAME}\:2083%{REQUEST_URI} [R,L]
     
  7. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Are you referring to these options in WHM > Tweak Settings

    Always redirect to SSL [?]
    Always redirect users to the SSL/TLS ports and certificate hostname when visiting /cpanel, /webmail, etc.

    Require SSL [?]
    Require SSL for all remote logins to cPanel, WHM, and Webmail. Recommended.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can enable the following option under the "Security" tab in "WHM >> Tweak Settings":

    "Require SSL"

    This requires SSL for all remote logins to cPanel, WHM, Webmail and DAV.

    Thank you.
     
Loading...

Share This Page