Skip to content

Instantly share code, notes, and snippets.

@EntityReborn
Created August 11, 2011 22:36
Show Gist options
  • Save EntityReborn/1140985 to your computer and use it in GitHub Desktop.
Save EntityReborn/1140985 to your computer and use it in GitHub Desktop.
conf = {
"/": {
"request.dispatch": cherrypy.dispatch.VirtualHost(**{
"x.co.cc": "/",
"y.x.co.cc": "/mc",
"static.x.co.cc": "/static"
}),
"tools.staticdir.root": r"/root/site/static",
},
"/static": {
"tools.staticdir.on": True,
"tools.staticdir.dir": r"/root/site/static"
},
}
cherrypy.config.update(conf)
root = X()
root.y = Y()
cherrypy.quickstart(root, config=conf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment