Closed jpap closed 11 years ago
A straightforward alternative to the existing subdomain route option.
In the CompoundJS application config/route.coffee file, add the vhost option in the 3rd parameter dictionary:
config/route.coffee
exports.routes = (map) -> map.get "/apples/:id", "fruit#action", {vhost: ".fruit.com"} map.get "/carrots/:id", "vegetable#action", {vhost: "vegetables.com"}
where the vhost value is similar to what you would see in a Nginx server_name directive:
vhost
server_name
Brilliant. Thank you!
A straightforward alternative to the existing subdomain route option.
In the CompoundJS application
config/route.coffee
file, add the vhost option in the 3rd parameter dictionary:where the
vhost
value is similar to what you would see in a Nginxserver_name
directive: