[plug] Apache ScriptAlias question

Denis Brown dsbrown at cyllene.uwa.edu.au
Tue Feb 10 13:43:15 WST 2004


At 13:30 10/02/2004 +0800, Matt Kemner wrote:
>On Tue, 10 Feb 2004, quoth Denis Brown:
>
> > ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
> > ScriptAlias /cgi-bin/ "/usr/local/ups/cgi-bin/"
>
>These will clash with each other.
>ScriptAlias actually aliases a "directory" within the virtual webspace
>
>ie where you would go to http://www.yourdomain.com/cgi-bin/ it aliases it
>to the specified directory, so obviously you can't point one directory at
>two locations.
>
>Instead try: ScriptAlias /nut-cgi/ /usr/local/ups/cgi-bin/
>or similar
>so you can then go to http://www.yourdomain.com/nut-cgi/ and access those
>scripts.

(And similar input from James.)

Me: dips lid!

You're quite right of course, now that I think about it from that viewpoint :-)

>Either that, or turf the whole "all cgi script must be in cgi-bin" idea,
>and instead uncomment this line:
>
>AddHandler cgi-script .cgi .sh .pl
>
>which means you can drop your cgi script anywhere you like provided they
>end in one of those extensions.

True and elegant, but I like the idea of having things nicely belonging in 
their own space.   And to James' point: maybe I'm a control freak, James :-)

> > P.S.   Anyone looking for a decent UPS monitoring solution would be advised
> > to have a browse at Network UPS Tools.   I have some APC Smart-UPS's
>
>I second that.  I have an APC Smart-UPS at home, and getting it to work
>with NUT was a breeze

Sweet, i'n't it :-)






More information about the plug mailing list