Wie kann ich »apachectl status« und »apachectl fullstatus« verwenden? Ich erhalte die Fehlermeldung »Not Found The requested URL /server-status was not found on this server. Apache/1.3.33 Server at localhost Port 80«. mod_status ist angeschaltet und lynx ist installiert

Die URL wurde nicht gefunden, weil in /etc/apache/httpd.conf keine solche URL mit dem Handler mod_status konfiguriert wurde. Dies kann man wie folgt nachholen:

# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#

    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from .localdomain # also possible: localhost
    Allow from 127.0.0.1

Die Zeile »Allow from 127.0.0.1« ist dabei notwendig, weil dies die Client-Identifikation durch »apachectl status« ist. Man kann den Server-Status nun auch über http://localhost/server-status aufrufen.

Die Datei /usr/lib/apache/1.3/070mod_status.info enthält u.a. »Directives: ExtendedStatus«. Diese Direktive kann in /etc/apache/httpd.conf _nach_ der Zeile

LoadModule status_module /usr/lib/apache/1.3/mod_status.so

oder etwas wie

Include /etc/apache/modules.conf

verwendet werden. Etwa so:

  
    ExtendedStatus On
  

Wahrscheinlich ist auch eine Integration mit dem neuen /etc/apache/conf.d/-Mechanismus möglich, das wurde jedoch nicht verscht.


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.