Forbidden - 403 error Apache

Posted by philippe on Server Fault See other posts from Server Fault or by philippe
Published on 2012-12-08T04:27:57Z Indexed on 2012/12/08 5:08 UTC
Read the original article Hit count: 145

Filed under:
|
|

I was setting my local Apache server to run Python cgi, then I came with the following error:

Forbidden

You don't have permission to access /hw10/main.cgi on this server.

What I've changed on my http config file was:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options FollowSymLinks +ExecCGI
    Order allow,deny
    Allow from all
    Require all granted
</Directory>
AddHandler cgi-script .cgi .py

May someone please help me with that? I was trying to configure my Apache server to run .cgi Python scripts, and I came across that.

© Server Fault or respective owner

Related posts about apache2

Related posts about python