Webserver/Apache/StatusPage

De TartareFR
Version datée du 1 mai 2014 à 10:54 par Didier (discussion | contributions) (Page créée avec « Activation de la page de status d'Apache Fichier <path>/etc/httpd/conf.d/status</path> <syntaxhighlight lang="apache"> <IfModule status_module> ExtendedStatus On ... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Activation de la page de status d'Apache

Fichier <path>/etc/httpd/conf.d/status</path>

<IfModule status_module>
    ExtendedStatus On
    <Location /server-status>
        SetHandler server-status
        <IfModule mod_authz_core.c>
            # Apache 2.4
            <RequireAny>
                Require ip 127.0.0.1
                Require ip ::1
                Require ip 192.168.1.0/24
            </RequireAny>
        </IfModule>
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order Deny,Allow
            Deny from  All
            Allow from 127.0.0.1
            Allow from ::1
            Allow from 192.168.1.0/24
        </IfModule>
    </Location>
</IfModule>