Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default How to bind apache to one IP rather than all

    Hello,

    I am trying to bind apache to listen to only one IP on the server rahter than all of them I believe this should be possible

    I am seeing this in the conf file:

    # BindAddress: You can support virtual hosts with this option. This directive
    # is used to tell the server which IP address to listen to. It can either
    # contain "*", an IP address, or a fully qualified Internet domain name.
    # See also the <VirtualHost> and Listen directives.
    #
    #BindAddress *


    Does anyone know if I set this to bind will it mess up virtual hosting? I looked arround in the apache site and was not too clear on what to configure.

    Or should it be the Listen and Port directives? I am seeign these:

    Port 80

    ##
    ## SSL Support
    ##
    ## When we also provide SSL we have to listen to the
    ## standard HTTP port (see above) and to the HTTPS port
    ##
    <IfDefine SSL>
    Listen 80
    Listen 443
    </IfDefine>


    Thank you

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    IIRC, you need to change the Listen directive so that instead of:

    Listen 80

    You have:

    Listen 11.22.33.44:80

    Then restart httpd. Where 11.22.33.44 is the IP address you want to listen on. It'll work so long as you obviously haven't got any domains using a different IP address than the one you're listening on.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    thanks chirpy you rock!

Similar Threads & Tags
Similar threads

  1. Problems with bind or apache
    By m0rpheu5 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-06-2006, 10:29 AM
  2. Apache and bind failed
    By welo in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-04-2004, 04:01 AM
  3. Apache could not bind to port, telnetd, how do i fix?
    By Diatone in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-01-2003, 10:59 AM
  4. what going on with apache, bind, mysql and interchange faile
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 01-22-2003, 09:21 AM
  5. BIND or APACHE ?
    By ehsan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-03-2002, 06:53 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube