I had no luck with ScriptAlias.
I set a UserDir public_html
I used ExecCGI and AddHandler similar to you -
That was the only way I found to run CGI scripts in Firefox.
The Apache documentation does not help so much with Ubuntu.
This page helped:
https://help.ubuntu.com/12.04/serverguide/httpd.ht
I'm missing something, probably simple, so assistance appreciated. Apache
2.2.22 on Ubuntu 12.04(LTS) server. I have, for "site foo" which uses some
Perl scripts:
ScriptAlias /cgi-bin/ /var/www/foo/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwne