Yes, sorry, I was talking about /etc/httpd/conf/httpd.conf indeed.
You could do the above line for each virtual site indeed..
like, per site:
Scriptalias /cgi-bin/ "/var/www/site1/cgi-bin/"
Or: (notice the cgi-bin within
the DocumentRoot. Not
preferred, but easier for ftp perhaps, I've seen this)
Scriptalias /cgi-bin/ "/var/www/site1/cgi-bin"
or another way of doing:
Alias /cgi-bin/ "/var/www/site1/cgi-bin/"
Just to name a few options.