ColdBox Framework Forums Notification: Post to More controls for environmentalControls

Title: More controls for environmentalControls
Thread: More controls for environmentalControls
Forum: Enhancements
Conference: ColdBox
User: prentice Currently, the environmental controls function only checks cgi.http_host and
looks for a match there to determine whether it should use any particular
setting. I ran into 2 situations where the current EnvironmentControl did not
provide enough controls:

1) Same server, but same app that resides in
different paths, like /user1/app and /user2/app

2) Different server, but same
server name, like localhost on one machine, and localhost on a different machine
On both instances, I needed a slightly different environment setting. The
first situation is obvious, for the second, this happened on a team where
different OS was being used, so it necessitated the need for different settings.
I like to propose a new scheme for environmental control that could address
both:

[code]
<environment name="something">
    <environmentparams>
<!-- url tag remains the same as before, and does an or search on
comma-delimited items -->
        <url>localhost,127.0.0.1</url>
        <!--
scriptname searches the cgi.scriptname and does afind on the value -->
<scriptname>/userhome/</scriptname>
        <!-- pathtranslated searches the
cgi.path_translated and does find on the value -->
<pathtranslated>/userhome/</pathtranslated>
    </environmentparams>
<settings>
    ....
    </settings>
</environment>
[/code]

This will
address the first situation. And it should address the 2nd one if they are
installed on different paths. Not sure how to resolve the situation when 2
computers are using the same paths though... any thoughts?
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=540A5906-FF65-CEF6-6569FA9AD0A158E2