Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Forward to anotehr Dispatcher based on the Host header.

This can be useful when running multiple sites within one server.
It allows several domains to point to different parts of a single
website structure. For example:
- http://www.domain.example      -> /
- http://www.domain2.example     -> /domain2
- http://www.domain2.example:443 -> /secure

:param domains: a dict of {host header value: virtual prefix} pairs.(more...)

src/c/i/circuits-3.0.0.dev/examples/web/virtualhosts.py   circuits(Download)
#!/usr/bin/env python
from circuits.web import Server, Controller
from circuits.web.dispatchers import VirtualHosts