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.

Port Forwarding

Discussion in 'Data Protection' started by Ashok Reddy, Jul 25, 2008.

  1. Ashok Reddy

    Ashok Reddy Registered

    Joined:
    Jul 21, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    My ISP blocks port 80. I need to know how can i forward port 80 to port 8080. Please help me on how to forward all the requests to port 8080.

    Operating system: centos 5
    cpanel/whm
     
  2. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    First login into your server and then open httpd.conf file in your text editor.

    Find this line:
    Listen 80

    change it to:
    Listen 8080

    Save and restart Apache. :)

    You need to be always restart Apache after making changes to a conf file and don't foget to make a backup file for httpd.conf before making any edits to avoid any problems.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you do that, no-one will be able to view your sites unless they specifically add :8080 to every URL request manually. Not a good idea.

    If you want to redirect traffic requests from port 8080 to port 80 then you'll either need to use iptables or another tool that redirects port traffic (such as redir)
     
Loading...

Share This Page