Hi!
Have you checked out the yaSSL Embedded Web Server? With SSL enabled, it is sized small enough to fit into resource constrained environments at under 200k in footprint. However, it still has a useful feature set, including all of the standard web server functionality you would expect, plus features like support for CGI with your favorite language, including PHP, Perl, Python, Ruby on Rails, etc. Check it out at www.yassl.com.