web server doesnt run cgi file
I have created a virtual host with following configuration
Options Indexes FollowSymLinks ExecCGI
Order allow, deny
Allow from all
I have created a subdirectory that I named "result" under DocumentRoot directory mysite and placed a cgi file called results but with no .cgi extension but ForceType should take care of it.
but when I type URL www.mysite.com/result/results
it doesnt run the file as cgi script but a window appears telling me that
"you have chosen to open results which is a: application/x-httpd-cgi from: http://www.mysite.com
and asking me to open with or save to disk.
I am wondering why it is doing this instead of running it.
it runs when I put results in the main directory and typed
I also added the following line it maynot be necesary but I still added
AddHandler cgi-script .cgi
I will appreciate if anybody could help me in this