Apache2 activer le module server-status
Par Draggi le mercredi, septembre 9 2009, 11:25 - Linux & BSD - Lien permanent
Le Server-status d'Apache.
Si le module est installé il faut l'activer:
a2enmod status
Éditer le fichier /etc/apache2/httpd.conf:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from IP1 IP2 IP3 127.0.0.1 localhost
Deny from All
</Location>
Editer le fichier /etc/apache2/apache2.conf
ExtendedStatus On
Redemarrer Apache2.
Directives pour esquiver les réécritures d'url (RewriteCond et Rule)
- Pour WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/server-status
RewriteRule . /index.php [L]
- Pour symphony
RewriteCond %{REQUEST_URI} !=/server-status
Commentaires
a2enmod
Et moi qui faisait tout à la main...
(vieux réflexes de la 1.3 .....)