Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Running More than 1 Apache Possible ??

Mr_SmithMr_Smith Member Posts: 33
Hi, im running apache and its working fine.

Only problem ive got is my box is setup as a router and has 2 netcards local and external.

What i would like to do is run a version of apache serving each under diffrent groups so the local version can access files i would prefer not accessable via the external one?

Is this possible ?

Comments

  • JonathanJonathan Member Posts: 2,914
    : Hi, im running apache and its working fine.
    :
    : Only problem ive got is my box is setup as a router and has 2
    : netcards local and external.
    :
    : What i would like to do is run a version of apache serving each under
    : diffrent groups so the local version can access files i would prefer
    : not accessable via the external one?
    :
    : Is this possible ?
    Yup, you will need a seperate configuration file for each one and in those configuration files you will need to Bind one Apache to the local network card's IP address and Bind the other Apache to the IP of the external network card.

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

  • Mr_SmithMr_Smith Member Posts: 33
    : : Hi, im running apache and its working fine.
    : :
    : : Only problem ive got is my box is setup as a router and has 2
    : : netcards local and external.
    : :
    : : What i would like to do is run a version of apache serving each under
    : : diffrent groups so the local version can access files i would prefer
    : : not accessable via the external one?
    : :
    : : Is this possible ?
    : Yup, you will need a seperate configuration file for each one and in those configuration files you will need to Bind one Apache to the local network card's IP address and Bind the other Apache to the IP of the external network card.
    :
    : Jonathan



    Thanks for the quick reply, what im not quite sure about is the external IP is being obtained from DHCP, is there anyway to bind it to an interface?

    Also how would i go about running 2 copies is it a command line switch?

    Thanks

  • JonathanJonathan Member Posts: 2,914
    : : Yup, you will need a seperate configuration file for each one and
    : : in those configuration files you will need to Bind one Apache to
    : : the local network card's IP address and Bind the other Apache to
    : : the IP of the external network card.
    : :
    : : Jonathan
    :
    : Thanks for the quick reply, what im not quite sure about is the
    : external IP is being obtained from DHCP, is there anyway to bind it
    : to an interface?
    Not sure...see the Apache docs, also see the Listen directive (which is what we use to bind the server an a address):-
    http://httpd.apache.org/docs/mod/core.html#listen

    : Also how would i go about running 2 copies is it a command line
    : switch?
    When you normally start Apache, it uses the default httpd.conf file. However, you can instruct it to use another one, by setting the -f parameter:-

    /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf

    Depending on the OS, they may need a seperate scoreboard file or something like that, I don't know. I'm not an Apache expert! :-)

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.