You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Apache Beginner <Ap...@reborn.org> on 2003/03/12 15:11:01 UTC

[users@httpd] CGI Align QuestionS

Would anybody tell me how to let my cgi scripts runs anywhere under the
document root ?
ie, not restricted on "/cgi-bin/", but "./" is ok ?

The other question is, how to let .pl or .cgi be treated as Perl Script, but
also a valid index file ?
ie, I put index.pl under my doc root, and when I open http://localhost ,
then index.pl will run.

TIA,
Bob


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] CGI Align QuestionS

Posted by Jeff Cohen <ap...@gej-it.com>.
> 
> Would anybody tell me how to let my cgi scripts runs anywhere under the
> document root ?
> ie, not restricted on "/cgi-bin/", but "./" is ok ?

Should be just /
And should come with:

AddHandler cgi-script .cgi .pl
Option ExecCGI

> 
> The other question is, how to let .pl or .cgi be treated as Perl Script,
> but
> also a valid index file ?

By priority:
DirectoryIndex index.pl index.htm index.html

> ie, I put index.pl under my doc root, and when I open http://localhost ,
> then index.pl will run.

All the best,
Jeff Cohen


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org