Script Alias Error

Subhendu Ghosh sghosh at sghosh.org
Thu Mar 13 03:14:44 CET 2003


You cannot add an Alias on a sub-path of an alias....

ScriptAlias should come before the Alias...

-sg

On Wed, 12 Mar 2003, David Gitman wrote:

> 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>
> 
<snip>
> 
>     Alias /nagios/ "/local/project/nagios/share/"
>     
>     <Directory "/local/project/nagios/share">
>         Options None
>         AllowOverride AuthConfig
>         Order allow,deny
>         Allow from all
>     </Directory>

<snip>
> 
>     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