httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <>
Subject Re: problems
Date Mon, 04 Mar 2002 12:28:32 GMT
"Murali K. Vemuri" wrote:
> hi ,
> i wanna add a perl script handler for the apache and i could not
> understand from the help files.
> forgive me, i am a newbie in the 'apache configuration'. can someone
> please suggest me
> how i can do this...
> my intention is to call perl scripts directly.

Two ways:

1) Put all your perl-scripts in one directory (e.g. called "cgi") then

ScriptAlias /cgi /path/to/cgi
<Directory /path/to/cgi>
  Allow from all

now http://your-server/cgi/ will execute /path/to/cgi/

2) Define an extension as executable, e.g.

AddHandler cgi-script cgi

then any program ending in ".cgi" in any directory will get executed.

http://your-server/banana/prog.cgi will execute

Remember that in either case, the program runs as the user defined by
the "User" directive (i.e. not as the fileowner) and you must generate a
proper CGI header before anything else... Read for details.


Owen Boyle.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message