Page 1 of 1

Nagios /Apache/ScriptAlias

Posted: 2004-03-26 19:25
by in flames
Hallo,

habe ein kleines Problem mit der Installation von Nagios, und zwar häng ich jetzt beim Apache fest, ich habe dies in die httpd.conf eingefügt:

Code: Select all

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
    AllowOverride AuthConfig
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
    Options None
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>
Die Pfade sind korrekt, Nagios liegt unter /usr/local/nagios

Beim Neustart von Apache bekomm ich jetzt allerdings diese Meldung:

Code: Select all

Starting web server: apacheSyntax error on line 5 of /etc/apache/httpd.conf:
Invalid command 'ScriptAlias', perhaps mis-spelled or defined by a module not included in the server configuration
failed
Vielen Dank!!

PS Apache = 1.3.26

Re: Nagios /Apache/ScriptAlias

Posted: 2004-03-26 20:58
by Joe User
Ohne die Zeilen 0 bis 10 der httpd.conf kann Dir nicht geholfen werden...

Re: Nagios /Apache/ScriptAlias

Posted: 2004-03-26 22:01
by in flames
Hätte ich vielleicht dazuschreiben sollen, sorry

Code: Select all

##
## httpd.conf -- Apache HTTP server configuration file
##

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
    AllowOverride AuthConfig
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
    Options None
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>


#
# Based upon the NCSA server configuration files originally by Rob McCool.

Re: Nagios /Apache/ScriptAlias

Posted: 2004-03-26 23:16
by compositiv
mod_alias laden?

Re: Nagios /Apache/ScriptAlias

Posted: 2004-03-27 11:06
by in flames
Der ist geladen

Re: Nagios /Apache/ScriptAlias

Posted: 2004-03-27 11:23
by oxygen
Hast du etwa den Nagios-Teil ganz oben in die httpd.conf eingefügt? Der muss zum Schluss rein. So kennt der Apache ja noch gar nicht die Module.

Re: Nagios /Apache/ScriptAlias

Posted: 2004-03-27 11:27
by in flames
Ich bin vielleicht ein Idiot :lol:

Hab es jetzt als allerletzes gemacht und siehe da es läuft.

Vielen Dank !!