Help setting monit up

Discussion in 'Apache' started by discover, Nov 11, 2007.

  1. #1
    Hi
    I have had some problems with apache going down so im trying to get monit working
    i think i have it installed ok but i cant get this http://www.example.co.uk/server-status?auto to work

    instructions:

    Apache normally compiles with mod_status enabled and built in. To access the status information the apache configuration file (often at /etc/httpd/httpd.conf or /usr/apache/conf/httpd.conf) should include these lines within one of your hosts or virtual hosts:

    <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Location>

    The Allow statement ensures that mod_status is only available on the local machine, since it would be insecure to let everybody read the information. If Monit is connecting from a different IP number (i.e. if it is monitoring a remote machine) you should allow the IP from which Monit will connect.

    could someone help me out please
    ive tried adding it to various sections in the conf file but still wont work
    thanks!
    al
     
    discover, Nov 11, 2007 IP