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!

apache listen [::]:80

Discussion in 'EasyApache' started by izghitu, Feb 8, 2014.

  1. izghitu

    izghitu Well-Known Member

    Joined:
    Aug 9, 2006
    Messages:
    52
    Likes Received:
    1
    Trophy Points:
    158
    Hi,

    I am trying to make apache listen on the main server IP only and I changed the listen address in tweak settings. After I rebuild the httpd conf and restart it does not work because there's always a Listen [::]:80 directive that conflicts with my IP:80 directive.

    Can you please tell me how do I remove that [::]:80 Listen directive?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Please use the following option to ensure Apache only listens on the IP addresses of you preference:

    "WHM Home » Service Configuration » Apache Configuration » Reserved IPs Editor"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi.

    I've several server and any has a Ip marked on "WHM Home » Service Configuration » Apache Configuration » Reserved IPs Editor"

    But one server are the same problem.

    Also after select IP form WHM, apache not work on any IP selected.

    Code:
    Listen [::]:80
    You can clarify?

    /https://dropbox.tamainut.net/owncloud/public.php?service=files&t=a0a40989f4c8e3bdbfce533cccced7db
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    29
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Screenshot URL isn't working.

    Docs on the solution suggested by cPanelMichael:

    https://documentation.cpanel.net/display/ALD/Reserved+IPs+Editor

    There's a similar thread here:

    http://forums.cpanel.net/f5/apache-still-listens-reserved-ip-301602.html

    And here's an alternate solution:

    Code:
    cd /var/cpanel/templates/apache2
    cp main.default main.local
    
    The edit main.local to customize the Listen directive. Specifically, you're looking for this:

    Code:
    [% IF configured.ip_listen -%]
    [%- FOREACH ip IN configured.ip_listen -%]
    Listen [% ip %]:[% configured.main_port %]
    [% END -%]
    [% ELSE -%]
    # Defined in /var/cpanel/cpanel.config: apache_port
    Listen [% main.listen.item.listen %]
    [% END -%]
    
    Then rebuildhttpdconf and restart.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice