httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Aitken <>
Subject [users@httpd] perl / cgi-bin setup issue
Date Fri, 09 Mar 2018 03:47:23 GMT
My first time trying to get a perl script to run, so probably something

On freebsd 10.3, apache 2.4.25


     ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"

   <Directory "/usr/local/www/apache24/cgi-bin">
       AllowOverride None
       Options ExecCGI
#        (It's my understanding the above Options ExecCGI
#  is not needed in this case)
       Require all granted

The script is world executable and runs fine:
$ ./
Content-type: text/plain; charset=iso-8859-1

hello, World!

When I fetch the page

all I see is the script echoed.

I have virtual hosts set up in extra/httpd-vhosts.conf;
I've tried fiddling with that as well to no avail:
   <VirtualHost *:80>
     ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
     <Directory "/usr/local/www/apache24/cgi-bin/">
       Options +ExecCGI
       AddHandler cgi-script .cgi .pl

Thanks for any pointers,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message