I also forgot to mention. In this setup, there is only one instance of
OpenBD running, so the admin/configuration is for all sites collectively.
What I have done before to access it from outside the immediate server to
to setup another host for it.
<Host name="bluedragon.local" appBase="webapps">
<Context path="" docBase="C:\openbd\tomcat\webapps\ROOT" />
</Host>
In this case, going to bludragon.local:8888/bluedragon/administrator will
get me there. You can also setup an Alias to reference from true URL like
openbd.[host].com and then have IIS just forward that.
On Wed, Nov 30, 2011 at 8:37 AM, Benjamin Davis <[email protected]
> wrote:
> Here is an example from my production server.xml file. When you first
> install, you will have the localhost that is the top line here. I leave
> this one as is and then create new ones like below. I also create then
> [host].local file inside of my c:\windows\system32\drivers\etc\hosts This
> way I can access it from the local machine going to port 8888 and then I
> don't have to open my firewall for port 8888 to test it from the outside.
> I also setup IIS to look for [host].local as well as [host].com and
> www.[host].com You never know what they are going to put in. You can
> always setup some redirects to www which SEO claims is a good thing. If
> this doesn't make sense then let me know. I haven't had any issues running
> this method. In fact, on my laptop, i point the directories to
> c:\users\[me]\Dropbox! I then just let Dropbox sync between my different
> servers automatically. (Host names have been changed to protect the
> innocent.)
>
> <Host name="localhost" appBase="webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> </Host>
> <Host name="foo.local" appBase="webapps">
> <Alias>www.foo.com</Alias>
> <Alias>foo.com</Alias>
> <Context path="" docBase="c:/inetpub/foo/main/" />
> </Host>
> <Host name="fooie.local" appBase="webapps">
> <Alias>www.fooie.foo.com</Alias>
> <Alias>fooie.foo.com</Alias>
> <Context path="" docBase="c:/inetpub/fooie/" />
> </Host>
>
> On Wed, Nov 30, 2011 at 7:19 AM, Yaroslav Govorunov
> <[email protected]>wrote:
>
>> Well, my post was actually about using ARR. Only last sentence was
>> about waiting, but rest of the post is still useful.
>>
>> On Nov 30, 3:42 pm, "Aaron J. White" <[email protected]> wrote:
>> > Hello all,
>> >
>> > @Yaroslav: Thanks for the information. For now, since Alex is willing
>> > to give me a helping hand now and ARR is native to IIS I think I will
>> > go with his suggestion. Once your team finishes your project and it
>> > proves to make setting up railo/openbd easier I'm sure the developers
>> > here would be interested.
>> >
>> > @Alex: I am on US Central Time(-6). Feel free to email me.
>> >
>> > On Nov 30, 7:06 am, Yaroslav Govorunov <[email protected]> wrote:
>> >
>> >
>> >
>> > > At the moment as I can see Aaron does not have a working solution at
>> > > all. So I provided a solution how to do this with Jetty (which was
>> > > initial question).
>> > > Static files is a second problem, which could be quite easy to solve
>> > > if you know how to write rewrite rules. But for the first we mast have
>> > > it working even with static files server with Jetty.
>> >
>> > > For me it seems like Aaron is trying to build some kind of CFML
>> > > hosting. I understand that using various manual solutions like ARR may
>> > > be fun, but I was asking to wait for our solution because it is
>> > > designed to do a hosting-like solutions in several clicks. From my
>> > > point of view it worth waiting a little.
>> >
>> > > On Nov 30, 2:44 pm, Alex Skinner <[email protected]> wrote:
>> >
>> > > > Hi,
>> >
>> > > > Arr does not need to be configured to proxy all request setting up
>> rewrite
>> > > > rules is trivial to achieve static files from iis and dynamic from
>> open bd,
>> > > > it's granular. Your solution may be better for other things but I
>> think
>> > > > it's not fair to say that he should wait as this is perfectly
>> doable with
>> > > > arr. I will produce documentation to show that as discussed.
>> >
>> > > > My 2p
>> >
>> > > > Alex
>> >
>> > > > On Wednesday, 30 November 2011, Yaroslav Govorunov <
>> [email protected]>
>> > > > wrote:
>> >
>> > > > > Hello!
>> >
>> > > > > Though my last post was ignored, I will try new one.
>> >
>> > > > > This is an instruction how to get multiple OpenBD web sites under
>> IIS
>> > > > > and Jetty, at least it works on Railo, I guess openBD is the same.
>> > > > > I suppose you are using Jetty installation.
>> >
>> > > > > 1. Copy contexts/openbd.xml file. You will eed to create as many
>> > > > > copies of this file in contexts folder as web sites you are going
>> to
>> > > > > have.
>> > > > > 2. Comment out <Set name="war"> line fom it.
>> > > > > 3. Add the following line after commented line (warning: mailer
>> may
>> > > > > split it into lines)
>> > > > > <Set name="resourceBase">c:\path\to\my\website\goes\here\</Set>
>> > > > > 4. In the <Set name="virtualHosts"> section add virtual hosts for
>> this
>> > > > > web site.
>> > > > > 5. Create appropriate web site in IIS 7 (with this virtual host).
>> > > > > 6. Start Jetty, for example using command: java -jar lib\start.jar
>> > > > > jetty.port=8081
>> > > > > 7. Use ARR to proxy all requests from this web site to
>> >
>> > > >http://localhost:8081
>> >
>> > > > > As for static files, it will be hard to configure with ARR. I am
>> still
>> > > > > suggesting you to wait a week or so until we finish our solution
>> with
>> > > > > Helicon Zoo, it will address all issues you have mention.
>> >
>> > > > > On Nov 30, 10:47 am, "Aaron J. White" <[email protected]>
>> wrote:
>> > > > >> Hey Guys, thanks for the info.
>> >
>> > > > >> I am trying a combination of both of your ideas.
>> > > > >> I used the vivio tech installer, but did not select the option
>> for
>> > > > >> ISAPI and am instead using IIS ARR. I am basically at the same
>> > > > >> stopping point that I was at with Jetty. I can see the openbd
>> admin
>> > > > >> screen, but I don't know what to do after that to setup multiple
>> sites
>> > > > >> linked to different openbd applications.
>> >
>> > > > >> @Alex: Could you give an example of the rewrite rule you use to
>> > > > >> forward to tomcat?
>> > > > >> ** I think it makes sense for Tomcat to serve cfm/cfc/cfml files
>> and
>> > > > >> IIS to serve everything else (js/css/images). Do you have tomcat
>> serve
>> > > > >> everything?
>> > > > >> ** here is my regex rewrite rule:
>> (?:([^:/?#]+):)?(?://([^/?#]*))?([^?
>> > > > >> #]*\.(?:cfc|cfm|cfml))(?:\?([^#]*))?(?:#(.*))?
>> > > > >> ** I have the cfml files being served by tomcat, but all the css/
>> > > > >> images are missing because IIS is looking under a different
>> folder
>> > > > >> (how would I fix that?).
>> >
>> > > > >> @Ben: Could you give an example of the configuration file for a
>> site
>> > > > >> outside of the C:\openbd\ folder?
>> > > > >> ** I also don't get how the OpenBD admin is going to be
>> connected to
>> > > > >> sites above it's physical path?
>> > > > >> *** Does every site have it's own OpenBD admin, or is every site
>> > > > >> administered with the same admin screen regardless of physical
>> path?
>> > > > >> *** How would I get to the openbd admin from any site on my
>> server?
>> > > > >> (i.e. mysite.com/openbd/admin or openbd.mysite.com)
>> >
>> > > > >> Sorry about all the questions. Thanks for the help this far.
>> >
>> > > > >> On Nov 29, 9:50 pm, Benjamin Davis <[email protected]>
>> > > > >> wrote:
>> >
>> > > > >> > There is also the Windows Installer that was made by Jordan
>> Michaels.
>> > > > This
>> > > > >> > isn't listed on the Open BD site anymore. Not sure why. And
>> the
>> > > > installer
>> > > > >> > is running version 1.4. After you run the installer you can
>> upgrade
>> > > > the
>> > > > >> > OpenBD version pretty smoothly. This is what I have used for
>> my
>> > > > production
>> > > > >> > and development servers. You can get the installer here:
>> >
>> > > >http://openbd.viviotech.net/
>> >
>> > > > >> > The installer will install Tomcat as a Windows Service and
>> also load
>> > > > >> > OpenBD. You can then change what you need in the config file
>> to setup
>> > > > your
>> > > > >> > own sites. They also don't need to be loaded within the
>> Tomcat folder.
>> >
>> > > > >> > As part of the install, there is the open to have the
>> installer setup
>> > > > IIS
>> > > > >> > 7. This will install the Tomcat ISAPI connector and configure
>> IIS for
>> > > > >> > OpenBD. Then you are pretty much ready to go. The only key
>> that I can
>> > > > >> > think of right now off the top of my head, is that you will
>> need to
>> > > > create
>> > > > >> > a virtual directory in your IIS site named jakarta that points
>> to
>> > > > >> > [drive]:\OpenBD\connector.
>> >
>> > > > >> > I haven't personally tried ARR instead of the ISAPI connector
>> yet. It
>> > > > >> > sounds like a better setup. I just know that the installer is
>> great
>> > > > to get
>> > > > >> > running fast.
>> > > > >> > Ben
>> >
>> > > > >> > On Tue, Nov 29, 2011 at 5:35 PM, Alex Skinner <
>> [email protected]> wrote:
>> > > > >> > > Hi Aaron,
>> >
>> > > > >> > > I can't help with Jetty, personally i think Tomcat is more
>> Windows
>> > > > >> > > friendly / intuitive.
>> >
>> > > > >> > > However I thoroughly recommend IIS7 ARR in front of native
>> tomcat,
>> > > > >> > > everyone is right Linux is great if you know it, if not you
>> can
>> > > > spend a
>> > > > >> > > long time fiddling. Jetty also looks great but you cant
>> match tomcat
>> > > > for
>> > > > >> > > ease of install.
>> >
>> > > > >> > > Steps
>> >
>> > > > >> > > 1. Install Java
>> > > > >> > > 2. Install Windows tomcat as a service and make sure it
>> starts on
>> > > > startup
>> > > > >> > > as a service
>> > > > >> > > 3. Install IIS ARR Application request routing and proxy
>> requests to
>> > > > >> > > tomcat it just uses simple rewrite rules
>> >
>> > > > >> > > This is a reasonable description
>> >
>> > > > >> > >http://www.iisadm> > >> tohttp://
>> >
>> > > >www.mysecondsite.com/index.cfmstillsentmetotheindexof
>> >
>> > > > >> > >> > > the openbd context.
>> >
>> > > > >> > >> > > Things didn't start going downhill until I tried
>> modifying the
>> > > > >> > >> > > open.xml file. I thought I needed to enable virtualhost
>> for the
>> > > > openbd
>> > > > >> > >> > > context. Once I did that ARR was still forwarding to
>> Jetty, but
>> > > > I was
>> > > > >> > >> > > getting a 404 error.
>> >
>> > > > >> > >> > > Any ideas?
>> >
>> > > > >> > >> > > On Nov 22, 4:39 am, Paul Kukiel <[email protected]>
>> wrote:
>> >
>> > > > >> > >> > > > Yep and this page also has some extra steps to send
>> across the
>> > > > >> > >> original
>> > > > >> > >> > > > host information:
>> >
>> > > >http://learn.iis.net/page.aspx/711/modifying-http-response-headers/
>> >
>> > > > >> > >> > > > Paul.
>> >
>> > > > >> > >> > > > On Tue, Nov 22, 2011 at 9:34 PM, Alex Skinner <
>> >
>> > > > [email protected]>
>> >
>> > > > >> > >> wrote:
>> > > > >> > >> > > > > Yes also check out <Valve
>> > > > >> > >> > > > >
>> className="org.apache.catalina.valves.RemoteIpValve" />
>> >
>> > > > >> > >> > > > > within your hosts this will remap the forwarded-for
>> that
>> > > > haproxy
>> > > > >> > >> and IIS
>> > > > >> > >> > > > > proxy store the actual client ip address and put it
>> back
>> > > > into the
>> > > > >> > >> cgi
>> > > > >> > >> > > > > variable so it appears like the proxy isn't there
>> >
>> > > > >> > >> > > > > A
>> >
>> > > > >> > >> > > > > On 22 November 2011 10:15, Paul Kukiel <
>> [email protected]>
>> > > > wrote:
>> >
>> > > > >> > >> > > > >> Basically user URL rewrite and ARR in IIS 7+ to do
>> a
>> > > > reverse
>> > > > >> > >> proxy to
>> > > > >> > >> > > > >> OpenBD. I use this same method to proxy jira (
>> tomcat ).
>> > > > If
>> > > > >> > >> you only have
>> > > > >> > >> > > > >> 1 instance of OPEN it will be really easy. If you
>> need
>> > > > more
>> > > > >> > >> infor I can
>> > > > >> > >> > > > >> send some screenshots.
>> >
>> > > > >> > >> > > > >> Paul.
>> >
>> > > > >> > >> > > > >> On Mon, Nov 21, 2011 at 6:11 PM, Aaron J. White <
>> > > > >> > >> [email protected]>wrote:
>> >
>> > > > >> > >> > > > >>> @Paul: Could you please elaborate? Do you happen
>> to have
>> > > > a
>> > > > >> > >> working
>> > > > >> > >> > > > >>> rewrite rule for for .cfm/.cfc extensions?
>> >
>> > > > >> > >> > > > >>> @Matt: I'm married to IIS for the moment. I would
>> like
>> > > > IIS to
>> > > > >> > >> be in
>> > > > >> > >> > > > >>> front so nothing I currently have setup will
>> break.
>> > > > >> > >> > > > >>> I would be happy with one instance of openbd
>> serving all
>> > > > cfml,
>> > > > >> > >> but
>> > > > >> > >> > > > >>> whichever one is easier will work for me.
>> >
>> > > > >> > >> > > > >>> On Nov 21, 12:22 am, Matthew Woodward <
>> >
>> > > > [email protected]>
>> >
>> > > > >> > >> wrote:
>> > > > >> > >> > > > >>> > On Sun, Nov 20, 2011 at 10:09 PM, Aaron J.
>> White <
>> > > > >> > >> [email protected]>
>> > > > >> > >> > > > >>> wrote:
>> >
>> > > > >> > >> > > > >>> > > Hello All,
>> >
>> > > > >> > >> > > > >>> > > I would like to run multiple openbd cfml
>> applications
>> > > > with
>> > > > >> > >> Jetty
>> > > > >> > >> > > > >>> > > behind IIS. Has anyone ever done this and
>> know of a
>> > > > good
>> > > > >> > >> guide or is
>> > > > >> > >> > > > >>> > > able to walk me through it?...
>> >
>> > read more ยป
>>
>> --
>> online documentation: http://openbd.org/manual/
>> google+ hints/tips: https://plus.google.com/115990347459711259462
>> http://groups.google.com/group/openbd?hl=en
>>
>
>
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en