Hello Paul & Matt,
Thanks for the extra information.
@Paul: If it's not asking to much could you please send the
screenshots of the ARR setup? I had something working, but I don't
think it was right. I could only enable the proxy at the server level.
I couldn't enable the proxy by changing the rewrite rule at the site
level.
@Everyone: I did have IIS ARR forwarding to Jetty about two days ago,
but I ended up changing some Jetty options and completely messing it
up. I am trying to setup IIS and Jetty so that I can serve multiple
cfml applications to different websites. My issue was that once ARR
got .cfm/cfc/.cfml request sent to Jetty on port 8081 Jetty would only
show the "fresh install" page of the openbd context.
Here is what I tried. Could someone please point out the step I
missed?
1. I unzipped the bootstrap application files into the root of
mysecondsite.com.
2. I copied the openbd.xml file in c:/jetty-openbd/contexts and
renamed it to "mysecondsite.xml".
3. I modified mysecondsite.xml to the below:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war">C://hostingspaces/awhite/mysecondsite.com/wwwroot</
Set>
<!---virtual hosts --->
<Set name="virtualHosts">
<Array type="String">
<Item>www.mysecondsite.com</Item>
</Array>
</Set>
<!-- disable cookies -->
<Get name="sessionHandler">
<Get name="sessionManager">
<Set name="usingCookies" type="boolean">true</Set>
</Get>
</Get>
</Configure>
4. Restarted the Jetty service, and it still didn't work. Going to
http://www.mysecondsite.com/index.cfm still sent me to the index of
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?
>
> >>> > Do you want a single instance of OpenBD serving all CFML across the
> >>> board,
> >>> > or isolated instances per app?
>
> >>> > If you want a single instance install the Jetty Ready2Run version is
> >>> > already set up this way.
>
> >>> > If you want individual instances, that's just a matter of defining
> >>> multiple
> >>> > webapps and proxying to them from your web server.
>
> >>> > > For example, IIS
>
> >>> > Are you married to IIS or would you consider Apache?
>
> >>> > > 1. URL rewriting alone
> >>> > > ***won't work because user will see :8080 attached to url.
>
> >>> > Well, this brings up another option which is to run Jetty on port 80,
> >>> or
> >>> > use port forwarding, in which case you don't need a web server in
> >>> front of
> >>> > Jetty.
>
> >>> > > 2. IIS ARR
>
> >>> > Yeah at this point you lose me because I don't ever use IIS, but looks
> >>> like
> >>> > Paul Kukiel might have some suggestions.
>
> >>> > > 3. AJP13
> >>> > > Link:http://tomcatiis.riaforge.org/
> >>> > > *** This looks like the best solution, but I don't know what to do
> >>> > > once I get to "worker.properties" and "uriworkermap.properties" in
> >>> the
> >>> > > instructions. Does Jetty have worker.properties?
>
> >>> > Jetty speaks AJP but not in that same way--it's just simple proxying in
> >>> > similar fashion to HTTP (which is another option).
>
> >>> > Million ways to skin this cat so we'll get you going one way or
> >>> another. I
> >>> > don't know how IIS does proxying (or if it even supports AJP) but
> >>> that's
> >>> > the most typical setup.
> >>> > --
> >>> > Matthew Woodward
> >>> > [email protected]http://blog.mattwoodward.com
> >>> > identi.ca / Twitter: @mpwoodward
>
> >>> > Please do not send me proprietary file formats such as Word,
> >>> PowerPoint,
> >>> > etc. as attachments.
> >>>http://www.gnu.org/philosophy/no-word-attachments.html
>
> >>> --
> >>> online documentation:http://openbd.org/manual/
> >>> google+ hints/tips:https://plus.google.com/115990347459711259462
> >>> http://groups.google.com/group/openbd?hl=en
>
> >> --
> >> Paul Kukiel
>
> >> --
> >> online documentation:http://openbd.org/manual/
> >> google+ hints/tips:https://plus.google.com/115990347459711259462
> >>http://groups.google.com/group/openbd?hl=en
>
> > --
> > Alex Skinner
> > Managing Director
> > Pixl8 Interactive
>
> > Tel: +448452600726
> > Email: [email protected]
> > Web: pixl8.co.uk
>
> > --
> > online documentation:http://openbd.org/manual/
> > google+ hints/tips:https://plus.google.com/115990347459711259462
> >http://groups.google.com/group/openbd?hl=en
>
> --
> Paul Kukiel
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en