The usual reason for this problem, irrespective of type of webserver, is that the cgi program is not installed where the webserver expects it to be. In the case of Sambar, a little googling tells me it gets delivered with a sample cgi program called 'environ.pl'. A crude and dirty approach would therefore be to put the program in the same place as that one. The Sambar documentation ought to tell you more about aliasing and configuring paths for a cleaner approach - as it happens I only use apache on linux which uses a config file for aliasing paths, but the principles will be very similar.