httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] cgi & perl
Date Sat, 31 May 2003 18:43:34 GMT
On Sat, 31 May 2003, Ken Shail wrote:

> Thanks for that.
> Does it have to be so strict? It would be good to keep the whole project together html
& perl in the same subfolder.

It is indeed possible to run cgi programs out of non-cgi directories.
What you need to look at is the CGI tutorial, which discusses the
methods of enabling CGI execution in cgi-bin (ie, ScriptAlias'ed)
directories, as well as in other (eg, HTML) directories.

That tutorial can be found at:

http://httpd.apache.org/docs/howto/cgi.html

>   ----- Original Message -----
>   From: tanmaya Anand
>
>   Place your perl files in cgi-bin directory. Place your html files in /var/www/html
directory. and try to call cgi-scripts like <a href="/cgi-bin/abc.pl">.

This is certainly the *preferred* way to do things, but is not the only
way.

-- 
Rich Bowen - rbowen@rcbowen.com
ReefKnot - http://www.reefknot.org

---------------------------------------------------------------------
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


Mime
View raw message