I haven't used this personally, but I remember reading about the web server behind okcupid.com:
http://www.okws.org/
It uses c++: http://www.okws.org/doku.php?id=okws:tutorial
It uses c++: http://www.okws.org/doku.php?id=okws:tutorial
Use KLone http://koanlogic.com/klone/ .
It lets you write web pages with embedded C/C++ code (php-style escaping).
It's VERY fast and provides all common functions/features you need to parse incoming HTTP variables, sessions, file uploads, etc.
If you need more features you can link it against any C/C++ library and call library functions from within web pages.
If you're doing something computationally intensive (like, a dating or quiz site, for example, with the impressive statistical analysis that OkCupid and HelloQuizzy deliver up very quickly), then it would pay to look at an approach that's working well right now.