I've just been playing with the mobile web server of Nokia Research. What they did was just simply porting the Apache web server to the Symbian platform. One problem they had to work around was that the IP of the phone is not accessible from the outside since it is behind a firewall of the provider. To work around that they just implemented a gateway that redirects the requests to the phone. Its quite simple: You install the application on the phone and start it up then you register on the website and pick a subdomain (http://mshell.mymobilesite.net for example). Then you enter your account details on the phone, it connects then to the gateway and is ready for the requests. You can also browse your mobile site locally by using the browser on your phone. What kinda sucks is that if you don't have a flatrate for your data transfers its almost unusable unless you want to ruin yourself, you can only browse it locally.
The whole project is open source and you can create dynamic pages just like in PHP or ASP using Python. Would be nice to create mobile web applications using m, eh?
Huge Kudos to the research team of Nokia.
MyMobileSite.com
Project Site on Forum Nokia