Description: Cherokee is a flexible, very fast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. It is embeddable and extensible with plug-ins. It supports on-the-fly configuration by reading files or strings, TLS/SSL (via GNUTLS or OpenSSL), virtual hosts, authentication, cache friendly features, PHP, custom error management, and much more.
Keywords: cherokee web server httpd http

## Index → Configuration → Virtual servers

## Advanced Virtual Hosting

Cherokee currently support a mechanism by which a single virtual server can handle many different domains. The document root of this virtual server is built dynamically, so even if the domains share a common configuration they can use a number of different Document Root directories.

The following replacement variables are supported. Let’s suppose a request to the `alo.users.example.com` domain for the examples:

Variable | Example | Description
--- | --- | ---
`${domain}` | alo.users.example.com | Full domain name
`${tld}` | com | Top Level Domain
`${domain_no_tld}` | alo.users.example | Domain without the TLD
`${subdomain1}` | users | First sub-domain
`${subdomain2}` | alo | Second sub-domain