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.

Changing apache port to 8080

Discussion in 'EasyApache' started by eville84, Jul 20, 2005.

  1. eville84

    eville84 Member

    Joined:
    Jul 20, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi guys,

    I'm currently trying to set up cpanel on a router.

    I know this prolly issnt a good idea but its all i can do untill my new connection is set up at the end of the month.

    I have been able to succesfully port forward every other port i need except port 80.

    In the past when i was running apache on its own I just edited httpd.conf to have the listening port set at 8080 (then i set port forwarding on my router to port 80).

    When i edit /usr/local/apache/conf/httpd.conf to go to port 8080 when running cpanel it doesnt change the port. Is there another httpd.conf file i should be editing?

    I've searched the docs and this forum and have not been able to find an answer to this question. If there is already a thread on here about this please direct me to it. Thanks in advance.
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    you need to change only below two lines in httpd.conf...
    #port 80
    and
    #Listen 80

    and perhaps in /etc/services also...never tried ..
     
  3. eville84

    eville84 Member

    Joined:
    Jul 20, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    the only two httpd.conf files i have are in /etc/httpd.old/conf and /usr/local/apache/conf I have changed anything in the file that is 80 to 8080. i still am finding port 80 being listend to in cpanel websites.
     
  4. eville84

    eville84 Member

    Joined:
    Jul 20, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    anyone???

    Does anyone know if any of the following to methods would work?


    1)
    Using Cpanel proxy (www.cpanelproxy.net)
    - i know this tools is typically used to forward mail ports (2082) to port 80. But is there anyway to forward port 80 to a different port like 8080?


    2)
    Using a port forward application or command for linux.
    - will this line do it:
    ssh -L local-port:remote-hostname:remote-port username@hostname

    Or is there a application you can install on linux that will do it?



    If anyone has any knowledge on forwarding port 80 to another port in cpanel please help.
     
Loading...

Share This Page