Re: ScriptAlises not working
Hello,
I figured it all out in the end...
the definition of '/nagios/cgi-bin' should have come *BEFORE* the definition of
'/nagios'. I tried this, and it worked.
If it's the other way around, Apache parses it the wrong way...
Richard.
Quoting fabriciocannini <fabriciocannini@yahoo.com.br>:
>
> It might not be it, but are Nagios in the Apache folders,
> like, in a folder below Apache?
> I know that it is'nt needed but try to put Nagios in a folder
> below Apache, like /usr/local/bin/httpd/nagios or where it u put it.
>
> Hope it help u.
>
> Hobbs, Richard escreveu:
> > Hello,
> >
> > Thanks for your reply... I understand that Apache doesn't allow browsing
> of
> > cgi-bin directories by default, but how about this:
> >
> > http://broadband.mongeese.co.uk/nagios/ <-- Click on "Tactical
> Overview".
> >
> > It says "The requested URL /nagios/cgi-bin/tac.cgi was not found on this
> > server."
> >
> > However... My httpd.conf file says:
> >
> > #=================================================
> > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
> >
> > <Directory /usr/local/nagios/sbin/>
> > AllowOverride AuthConfig
> > Options ExecCGI
> > Order allow,deny
> > Allow from all
> > </Directory>
> > #=================================================
> >
> > And my directory structure looks like this:
> >
> > turnip:~# ls -l /usr/local/nagios/ | grep sbin
> > drwxrwxr-x 2 nagios nagios 4096 Feb 27 22:05 sbin
> > turnip:~# ls -l /usr/local/nagios/sbin/ | grep tac.cgi
> > -rwxrwxr-x 1 nagios nagios 124944 Feb 27 22:05 tac.cgi
> > turnip:~#
> >
> > So why doesn't this one work? Is it because I have a standard alias
> pointing to:
> >
> > http://broadband.mongeese.co.uk/nagios/
> >
> > ...and a ScriptAlias pointing to:
> >
> > http://broadband.mongeese.co.uk/nagios/cgi-bin/
> >
> > ??????
> >
> > Thanks,
> > Richard.
> >
> >
> >
> >>-----Original Message-----
> >>From: Kirk Ismay [mailto:captain@netidea.com]
> >>Sent: 27 February 2003 23:55
> >>To: debian-apache@lists.debian.org
> >>Subject: Re: ScriptAlises not working
> >>
> >>
> >>
> >>
> >>>Hello,
> >>>
> >>>I'm having a real problem getting ScriptAliases to work...
> >>
> >>I'm running
> >>
> >>>Apache/1.3.26 (Unix) Debian GNU/Linux, but if you visit:
> >>>
> >>> http://broadband.mongeese.co.uk/cgi-bin
> >>>
> >>
> >>Richard,
> >>
> >>Apache as shipped on Debian won't allow directory browsing in
> >>CGI directories. Try placing a test.cgi script in the
> >>directory and point your browser to the full url of the
> >>script. Here's a quick cgi to test:
> >>
> >>BEGIN
> >>
> >>#!/bin/sh
> >>
> >>/bin/echo -e "Content-Type: text/html\n\n";
> >>/bin/echo -e "<h1>Hello World</h1>\n";
> >>
> >>#END
> >>
> >>
> >>Sincerely,
> >>Kirk Ismay
> >>System Administrator
> >>
> >>--
> >>The Net Idea offers Wireless high-speed Internet in Nelson.
> >>Just imagine? Lightning fast Internet for only $19.95/month!
> >>Call us today or visit our web site at:
> >>http://www.netidea.biz/ and Go Wireless!
> >>
> >>
> >>
> >>
> >>--
> >>To
> >>UNSUBSCRIBE, email to debian-apache-request@lists.debian.org
> >>with a subject of "unsubscribe". Trouble? Contact
> >>listmaster@lists.debian.org
> >>
> >>
> >
> >
>
> _______________________________________________________________________
> Busca Yahoo!
> O serviço de busca mais completo da Internet. O que você pensar o Yahoo!
> encontra.
> http://br.busca.yahoo.com/
>
>
> --
> To UNSUBSCRIBE, email to debian-apache-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
--
Richard Hobbs
hobbs@mongeese.co.uk
http://mongeese.co.uk | http://fishsponge.co.uk
"There's only one way of life, and that's your own" - The Levellers
_____________________________________________________
Send all your jokes to jokes@fishsponge.co.uk !!
To subscribe, email: jokes-subscribe@fishsponge.co.uk
Reply to: