I played with Apache CGI and try to run a CGI script when a specific file extension is requested.
I have apache2.conf:
AddHandler handle .html
Action handle /use/lib/cgi-bin/test.pl virtual
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
So when I try to request the html page Hello.html from my DocumentRoot directory, I get an error message stating that it cannot find a path that combines the location of my CGI script and the requested file:
Not found
The requested URL / usr / lib / cgi-bin / test.pl / hello.html was not found on this server. Apache / 2.2.22 server (Ubuntu) in ryan-virtualbox 80 port
Why is my CGI script not starting, and why is this combined path presented as "Not Found"?
Thanks in advance.