I think you have to either:

Put them in different directories with the script need to run under
ScriptAlias

or:

Make them have different extensions (eg. the scripts need to run can have
.cgi suffix) and modify "AddHandler cgi-script .cgi"

Is it essential that you need to put them all in the same directory with
the same file name suffix? It is not good for the maintainance of your
content anyway ...

Michael

On Fri, 11 May 2001, David Smith wrote:

> IS there a way in apache to specify that, say, index.pl
> is a script to run, while other .pl files are to
> be sent to the browser?  I want to have some pages
> be perl scripts that generate the web content, which will
> have links to static, .html files, as well as perl scripts
> to download.
> 
> How can I differentiate these without putting them in separate
> directories?  I tried even putting them in a subdirectory
> below the main htdocs directory, which was specified
> with ScriptAlias in httpd.conf, but apache thinks everything
> in htdocs and below is a script to run.  If I take the directory
> out of ScriptAlias, it sends index.pl to my browser. 
> 
> Thanks,
> Dave
> ---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
> 

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to