"This is a case of over-specificity; I'm sure there's something out of the box that would provide equivalent functionality. That said, it sounds like there is enough complexity in your idea that you should build it into your script. Also, if it's going to get enough use to make this worthwhile, you should think about FastCGI instead of CGI. You'd be able to do a lot more in that case because the application could maintain state."
- Paul Brown
"I would not characterize Apache's configuration capabilities as "limited". You can definitely handle custom authentication and set environment variables for CGI scripts. Apache is your best bet."
- Paul Brown