Script Alias Error
David Gitman
David at feedroom.com
Wed Mar 12 15:10:29 CET 2003
I'm seeing the following error in my apache error log when trying to
access a Nagios script.
[Wed Mar 12 08:54:49 2003] [error] [client 10.0.12.31] File does not
exist: /local/project/nagios/share/cgi-bin/tac.cgi
Any ideas why it's going to /local/project/nagios/share/cgi-bin/ instead
of /local/project/nagios/sbin ? My apache Aliases section is below.
#
# Aliases: Add here as many aliases as you need (with no limit). The
format is
# Alias fakename realname
#
<IfModule mod_alias.c>
#
# Note that if you include a trailing / on fakename then the server
will
# require it to be present in the URL. So "/icons" isn't aliased in
this
# example, only "/icons/". If the fakename is slash-terminated,
then the
# realname must also be slash terminated, and if the fakename omits
the
# trailing slash, the realname must also omit it.
#
Alias /icons/ "/local/project/apache/icons/"
<Directory "/local/project/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# This Alias will project the on-line documentation tree under
/manual/
# even if you change the DocumentRoot. Comment it if you don't want
to
# provide access to the on-line documentation.
#
Alias /manual/ "/local/project/apache/htdocs/default/manual/"
<Directory "/local/project/apache/htdocs/default/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ "/local/project/nagios/share/"
<Directory "/local/project/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
#
# ScriptAlias: This controls which directories contain server
scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications
and
# run by the server when requested rather than as documents sent to
the client.
# The same rules about trailing "/" apply to ScriptAlias directives
as to
# Alias.
#
ScriptAlias /cgi-bin/ "/local/project/apache/cgi-bin/"
#
# "/local/project/apache/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/local/project/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /nagios/cgi-bin/ "/local/project/nagios/sbin/"
<Directory "/local/project/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</IfModule>
# End of aliases.
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list