From: Remi D. <re...@ch...> - 2004-10-27 12:55:03
|
> I'm just looking into cherrypy, and generally I like what I see. > > However, there is something I don't understand. Cherrypy creates one python file for each application. This is a complete http > server. But what if I want to serve several applications from one server? In J2EE terms you would have one servlet container > serving several apps, like: > > http://server:8080/app1 > http://server:8080/app2 > > Is this possible in Cherrypy? Yes, it is possible. If the 2 URLs look like the ones you used, then all you have to do is use two different classes. If the 2 applications used 2 different domain names, then you'd have to write some code in "initRequest" that redirects requests to the right class/method, based on the Host header. Regards, Remi. |