All,
I'm looking to deploy my Orbeon Forms application to a Tomcat + Apache + AJP environment, and I am currently developing my httpd.conf. I have two applications, both of which are hosted in a single Orbeon web application running in Tomcat. Here is the relevant part of my pageflow.xml: <page id="app1" path-info="/mpid" view="mpid/index.xhtml"/> <page id="app2" path-info="/icsr" view="icsr/index.xhtml"/> In my hosting environment I am attempting to set up an Apache2 frontend to Apache Tomcat using the AJP connector. This in itself is fairly straight-forward, but the rewriterules get complicated (well, for me...). I have attempted to follow these instructions: http://www.orbeon.com/orbeon/doc/reference-xforms-configuration#apache but they are not exactly what I am looking for. It is also worth noting that these notes on Orbeon/Apache are out-of-date, and no longer works (2006): http://blog.orbeon.com/2006/12/configuring-apache-front-end-for-orbeon_27.html My requirements are as follows: A. I need the two URLS defined in my Orbeon pageflow to be available at these locations: http://{client-name}.{base-url}.com/app1, e.g. amazon.zipconsulting.com/form1 and http://{client-name}.{base-url}.com/app2, e.g. amazon.zipconsulting.com/form2 Note how the URL does not contain the "/orbeon/" substring. B. Apache2 must connect to Apache Tomcat 5.5 using the AJP connector. Here is a simple example of how I think this would work: <VirtualHost *> ServerName myclient.myserver.com RewriteEngine on ... RewriteRule ^(.*) ajp://localhost:8009/orbeon/$1 [P,L] ... or something along these lines. C. We would prefer to still have the static Orbeon resources served up by Apache2 instead of Tomcat 5.5, like it is described here: http://www.orbeon.com/orbeon/doc/reference-xforms-configuration#apache Does anyone have a sample httpd.conf I can have a lok at? I'm no Apache experts, and I feel like I might be reinventing the wheel here. Any help would be greatly appreciated. Many thanks! Henrik Pettersen Sparkling Ideas, ltd. for the European Medicines Agency -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Henrik,
I have successfully configured Apache as a front end to Orbeon (Tomcat) using the same documentation you have referenced. I attach documentation for my own configuration, I hope it helps. There is extra information in there that you will have to ignore (rewrite logging, SSL). apache-tomcat-config-20091020.txt It's the end of the working week for me so I can't be any more help right now, but please post again if this isn't enough and I'll do my best to help after the weekend. Best wishes, Tom |
Hi Tom, all,
thank you for all your help, it's very much appreciated! Unfortunately, I'm no an apache expert... Is it true that this httpd.conf: http://n4.nabble.com/file/n1819515/apache-tomcat-config-20091020.txt would host the application at: http://{client-name}.{base-url}.com/orbeon/{form}, e.g. amazon.zipconsulting.com/orbeon/form ? If so, we are very close: I just need to get rid of the '/orbeon/' part of the URL, such that it becomes: http://{client-name}.{base-url}.com/{form}, e.g. amazon.zipconsulting.com/form I like to have my URLs technology/implementation agnostic... Many thanks for all your help! Henrik On 9 April 2010 16:44, Tom Grahame <[hidden email]> wrote: > > Henrik, > > I have successfully configured Apache as a front end to Orbeon (Tomcat) > using the same documentation you have referenced. > > I attach documentation for my own configuration, I hope it helps. There is > extra information in there that you will have to ignore (rewrite logging, > SSL). > > http://n4.nabble.com/file/n1819515/apache-tomcat-config-20091020.txt > apache-tomcat-config-20091020.txt > > It's the end of the working week for me so I can't be any more help right > now, but please post again if this isn't enough and I'll do my best to help > after the weekend. > > Best wishes, > > Tom > > > -- > View this message in context: http://n4.nabble.com/Orbeon-Forms-with-Apache-Tomcat-5-5-Apache2-and-AJP-connectors-httpd-conf-tp1819457p1819515.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Henrik, Tom
I believe you can use the ProxyPass directive as an alternative to using a RewriteRule. I have successfully used in the past: ProxyPass /orbeon ajp://localhost:8009/orbeon In this situation you probably want something like ProxyPass /yourapp ajp://localhost:8009/orbeon/yourapp Or even ProxyPass / ajp://localhost:8009/orbeon/ But I confess I have only tried the first example (where the source and ajp URL paths are the same). Regards Steve > -----Original Message----- > From: Henrik Pettersen [mailto:[hidden email]] > Sent: 09 April 2010 17:16 > To: [hidden email] > Subject: [ops-users] Re: Re: Orbeon Forms with Apache Tomcat > 5.5, Apache2 and AJP connectors: httpd.conf? > > > Hi Tom, all, > > thank you for all your help, it's very much appreciated! > Unfortunately, I'm no an apache expert... > > Is it true that this httpd.conf: > http://n4.nabble.com/file/n1819515/apache-tomcat-config-20091020.txt > > would host the application at: > http://{client-name}.{base-url}.com/orbeon/{form}, e.g. > amazon.zipconsulting.com/orbeon/form ? > > If so, we are very close: I just need to get rid of the '/orbeon/' > part of the URL, such that it becomes: > http://{client-name}.{base-url}.com/{form}, e.g. > amazon.zipconsulting.com/form > > I like to have my URLs technology/implementation agnostic... > > Many thanks for all your help! > > Henrik > > > On 9 April 2010 16:44, Tom Grahame > <[hidden email]> wrote: > > > > Henrik, > > > > I have successfully configured Apache as a front end to > Orbeon (Tomcat) > > using the same documentation you have referenced. > > > > I attach documentation for my own configuration, I hope it > helps. There is > > extra information in there that you will have to ignore > (rewrite logging, > > SSL). > > > > http://n4.nabble.com/file/n1819515/apache-tomcat-config-20091020.txt > > apache-tomcat-config-20091020.txt > > > > It's the end of the working week for me so I can't be any > more help right > > now, but please post again if this isn't enough and I'll do > my best to help > > after the weekend. > > > > Best wishes, > > > > Tom > > > > > > -- > > View this message in context: > http://n4.nabble.com/Orbeon-Forms-with-Apache-Tomcat-5-5-Apach > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Henrik Pettersen
Henrik,
Wouldn't deploying Orbeon Forms on / rather than /orbeon at the Tomcat level solve this? (i.e. placing the war in webapps/ROOT or defining in server.xml a <Context path="" docBase="path/to/orbeon"/>.) Alex On Fri, Apr 9, 2010 at 9:16 AM, Henrik Pettersen <[hidden email]> wrote: > Hi Tom, all, > > thank you for all your help, it's very much appreciated! > Unfortunately, I'm no an apache expert... > > Is it true that this httpd.conf: > http://n4.nabble.com/file/n1819515/apache-tomcat-config-20091020.txt > > would host the application at: > http://{client-name}.{base-url}.com/orbeon/{form}, e.g. > amazon.zipconsulting.com/orbeon/form ? > > If so, we are very close: I just need to get rid of the '/orbeon/' > part of the URL, such that it becomes: > http://{client-name}.{base-url}.com/{form}, e.g. amazon.zipconsulting.com/form > > I like to have my URLs technology/implementation agnostic... > > Many thanks for all your help! > > Henrik > > > On 9 April 2010 16:44, Tom Grahame <[hidden email]> wrote: >> >> Henrik, >> >> I have successfully configured Apache as a front end to Orbeon (Tomcat) >> using the same documentation you have referenced. >> >> I attach documentation for my own configuration, I hope it helps. There is >> extra information in there that you will have to ignore (rewrite logging, >> SSL). >> >> http://n4.nabble.com/file/n1819515/apache-tomcat-config-20091020.txt >> apache-tomcat-config-20091020.txt >> >> It's the end of the working week for me so I can't be any more help right >> now, but please post again if this isn't enough and I'll do my best to help >> after the weekend. >> >> Best wishes, >> >> Tom >> >> >> -- >> View this message in context: http://n4.nabble.com/Orbeon-Forms-with-Apache-Tomcat-5-5-Apache2-and-AJP-connectors-httpd-conf-tp1819457p1819515.html >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Agreed, making Orbeon the root Tomcat app is the only way I know to solve this. In the past I have also renamed the orbeon.war to something more appropriate, though that's not really a solution.
Also I suspect using the ProxyPass directive is more appropriate that using URL rewriting, I'm now looking into this myself. Best, Tom |
Free forum by Nabble | Edit this page |