in reply to How to configure Apache for running perl scripts.
Enables your scripts under http://myIPaddress/cgi-bin/a.pl<Directory "/var/www/html1"> ScriptAlias /cgi-bin/ "/var/www/html1" </Directory>
Would enable your script to run everywhere in your DocumentRoot, but you'll also need:AddHandler cgi-script .cgi .pl
ScriptAlias sets up an alias, and does the +ExecCGI implicitly for the location. If you don't want to be bound by your location, you need to explicitly add ExecCGI rights, and tell Apache to recognize the .pl extension. Please consider using mod_perl though, if you want to be nice to your server...<Directory "/var/www/html1"> Options +ExecCGI </Directory>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to configure Apache for running perl scripts.
by munu (Novice) on Aug 06, 2004 at 14:43 UTC | |
by Gilimanjaro (Hermit) on Aug 06, 2004 at 15:09 UTC | |
by munu (Novice) on Aug 06, 2004 at 15:36 UTC | |
by Gilimanjaro (Hermit) on Aug 09, 2004 at 09:43 UTC |