For anyone who’s been kept away from CommandBox because you have a ton of virtual hosts and don’t want to have just as many separate CommandBox servers, this feature is for you. Please help me test it before it releases!
https://ortussolutions.atlassian.net/browse/COMMANDBOX-1411
Traditional CommandBox servers have only a single web root, so if you run an Saas setup where you have 200 separate web roots in IIS, CommandBox wasn’t a very tenable solution for you since it would be a waste of resources to start 200 servers. With the addition of support for multiple contexts, you can now stick a single CommandBox instance behind
- IIS/Boncode
- Apache/mod_cfml
- Nginx (with some manual headers added)
with as many virtual hosts as you like defined in the web servers. With the flick of a switch in CommandBox, it will create new contexts, each with their own web root, on-demand.
server set modCFML.enable=true
# Set in BonCode or mod_cfml config
server set modCFML.sharedKey=myKey
This new feature does basically what the mod_cfml valve for Tomcat does, but in CommandBox/Undertow. It also works with Lucee Server and Adobe ColdFusion. The only real drawback right now is that on Lucee, CFConfig will import your config into the server context, but since the web-contexts will be created on-the-fly after the server is started, they will not have any config imported into them since they’re created after-the-fact. This only applies to servers with modCFML.enable
set to true.
Grab the latest build of CommandBox and give it a go:
https://downloads.ortussolutions.com/#/ortussolutions/commandbox/5.5.0-alpha/