I recently installed Apache2 on Ubuntu and I am trying to configure CGI. I added the following lines in apache2.conf file:
ScriptAlias /cgi-bin/ /home/router/cgi-bin/
<Directory /home/router/cgi-bin/>
Options ExecCGI
AddHandler cgi-script cgi pl
</Directory>
And I saved and restart apache2, but when I type the following in browser:
http://192.168.1.1/cgi-bin/file1.cgi
I get the following error:
You don't have permission to access /cgi-bin/file1.cgi on this server.