Click to See Complete Forum and Search --> : Run scripts in different directories


noshankus
04-15-2003, 04:06 AM
Hello,

I'm running Apache on a box, and I have perl scripts than run nicely in the cgi-bin directory (as they should =)).

However, I want to be able to run scripts that are stored in a totally different directory, i.e.:

Instead of scripts running in: http://www.web.com/cgi-bin/script.pl
I want:
http://www.web.com/intranet/directory/script.pl
to run!

The folders "cgi-bin" and "directory" are in totally different branches, i.e. "directory is no where near the Apache installation.

You may ask why - I do sometimes too, but thats the way it's "wanted". So, is there anything I can do to make the directory also execute perl scripts?
I've been told that adding something like a ScriptAlias in the httpd.conf file, would make other scripts not execute that are stored elsewhere. Although we don't have any other scripts running, in the future, we prolly will - so I can't copy the setting of others!

Any help and ideas, much appreciated! :D
Best regards,

chrism01
04-15-2003, 05:52 PM
ScriptAlias is prob what you want. You may also want ScriptAliasMatch which enables you to use a regex for dirs that are similarly named.