cyounkins/tunnel-on-dotcloud — pull request #1 by rudisimo (2013-01-24 21:09:52+00:00)
Title: Multi-site Setup

If you are serving multiple sites, it is impossible to properly identify and route them because the Host header isn't being passed down to our local server instance. This patch allows you to do just that. All you need to do is create multiple applications in dotCloud with the updated tunnel-on-cloud configuration files.

The actual configuration of the virtual hosts is left as an exercise to the user; but here's an example:

dotCloud
------------

```
site1
Services: static
site1-rudisimo.dotcloud.com
```

```
site2
Services: static
site2-rudisimo.dotcloud.com
```

Apache
-----------

```

ServerName site1-rudisimo.dotcloud.com
DocumentRoot /Users/Rudisimo/Public/site1/html

```

```

ServerName site2-rudisimo.dotcloud.com
DocumentRoot /Users/Rudisimo/Public/site2/html

```