title: How can CherryPy alone be used to serve multiple domains?
body: <p>I'd like to use a standalone instance of CherryPy to serve several domains from a single server. I'd like each domain to be served from a completely separate CherryPy application, each with its own configuration file.</p>
  
  <p>I played with <a href="http://docs.cherrypy.org/stable/refman/_cpdispatch.html" rel="nofollow noreferrer"><code>cherrypy.dispatch.VirtualHost</code></a>, but it seems like separate configuration files aren't possible.</p>
  
  <p>A similar question (<a href="https://stackoverflow.com/questions/6650943/cherrypy-3-2-virtual-host-application-configuration">here</a>) suggests that this is quite difficult, but doesn't explain why and might have been due to the fact that no one answered the question.</p>
  
  <p>This <a href="https://bitbucket.org/Lawouach/cherrypy-recipes/src/50aff88dc4e24206518ec32e1c32af043f2729da/deployment/multi_apps/__init__.py?at=default" rel="nofollow noreferrer">CherryPy recipe for multiple apps</a> shows how to load multiple sandboxed apps with separate configuration files, but it looks like they are being served form the same domain.</p>
  
  <p>I can understand that the answer might be, "use CherryPy as a WSGI server behind Nginx or Apache," but I'd rather only deal with CherryPy on this particular server.</p>