Host support now in TRUNK

0 views
Skip to first unread message

Peter Cooper

unread,
Feb 5, 2008, 12:48:02 AM2/5/08
to SwitchPipe
If you're running the trunk version of SwitchPipe, update and you will
have Host header support. This means you can specify hostname(s) for
each application in its configuration file, and SwitchPipe will use
the hostname instead of the path prefix on incoming requests to these
applications (although path prefixes work too if you access directly
by IP or an unmentioned hostname!)

This feature will then be more officially deployed in 1.03.

Peter Cooper

unread,
Feb 5, 2008, 12:49:05 AM2/5/08
to SwitchPipe
Note that one benefit of this new feature is that you can practically
use SwitchPipe as a stand-alone daemon with no Apache front-end, since
SwitchPipe can now handle domains / hostnames directly. Probably only
ideal for self / internal deployments at the moment though, as this
feature is in its infancy.

Peter Cooper

unread,
Feb 5, 2008, 12:55:22 AM2/5/08
to SwitchPipe
Note: The way to associate hostnames with apps is to put this in the
configuration file for an app:

hostname: www.example.com

If you need to specify multiple hostnames, use typical YAML array
format.

hostname:
- www.example.com
- www1.example.com
- www2.example.com

Note that at this time hostnames are matched using a regular
expression rather than a direct match. This means if you specify
"example.com" as a hostname, then requests to "something.example.com"
will end up at that app UNLESS "something.example.com" is explicitly
linked with another app. This may or MAY NOT continue to be true in
1.03, so do not rely on this feature.
Reply all
Reply to author
Forward
0 new messages