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:
I get the following error:
You don't have permission to access /cgi-bin/file1.cgi on this server.