[plug] Apache ScriptAlias question

James Devenish devenish at guild.uwa.edu.au
Tue Feb 10 13:31:23 WST 2004


In message <5.1.0.14.2.20040210125612.00a78e50 at cyllene.uwa.edu.au>
on Tue, Feb 10, 2004 at 01:21:25PM +0800, Denis Brown wrote:
> I would like to nominate several script [aliases] such as
> 
> ScriptAlias /cgi-bin/ "/some/where/cgi-bin/"
> ScriptAlias /cgi-bin/ "/another/place/cgi-bin"   and so on.
> 
> Part of the motivation is to employ the graphical output from nut (network 
> UPS tools), without having to recall to symlink or mv the script files from 
> nut's area to Apache's usual cgi-bin location.

My jaded answer is to say "you can't do that and why would you want
to?". You've explained your rationale, but how about this: is there
any particular reason why you want to use /cgi-bin/? Is it because
the NUT produces URLs that contain /cgi-bin/? Can this be changed?
You can certainly have multiple ScriptAlias directives, but normal
practice (AFAIK) is to use them with different URLs. E.g:

ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
ScriptAlias /nut/ /usr/local/ups/cgi-bin/





More information about the plug mailing list