Re: Re: Versioned resources in separate deployment

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Versioned-resources-in-separate-deployment-tp1574338p1578937.html

So let's assume that you're not using versioned resources (since you
can't do so for your own resources, in separate deployment).

The oxf.http.proxy.host/port properties are for something different:
they are used when Orbeon Forms needs to establish a connection back
to itself.

The main idea of rewriting is that if your app is deployed under
/my-app, and your image is accessible by the browser under
/my-app/images/logo.png, then in your HTML you write /images/logo.png,
and Orbeon Forms will rewrite it as /my-app/images/logo.png. So you
don't need to have the host/port specified, neither in your code nor
in the rewritten URL sent by Orbeon Forms to the browser.

Alex

On Tue, Mar 2, 2010 at 8:33 PM, npujol73 <[hidden email]> wrote:

>
> Thanks for your reply Alex. I now realize that my question was
> unclear/confusing. I apologize for that. Your point about versioned
> resources makes sense and was my understanding.
>
> My issue is more around determining what the urls to
> images/servlets/javascript/css should be in a separate deployment if I host
> that content in my own war along with some xml producing servlets that feed
> a couple of xforms:instances.
>
>  This gets particularly confusing in a proxied environment where it appears
> that making urls relative is just not enough (since i presume httpclient
> connections to some of the resources may be opened and a fully qualified url
> is needed to do so). In my situation our app server servers multiple host
> names. For example:
>
> http://demo1.home.com/
> http://demo2.home.com/
>
> In addition the web exposed port (80) is different than the one the server
> is actually running on the box itself (8080). I have  used the url-rewriting
> properties successfully but it is not ideal for me since the hostname really
> depends on the url that solicited the xform in the first place and that
> could be any of demo1.home.com or demo2.home.come (localhost or a generic
> hostname is not an option because the app server uses the hostname to drive
> some logic that determine what content will be served e.g
> http://demo1.home.com/ctx/images/mygif and
> http://demo2.home.com/ctx/images/mygif serve different content).
>
>  I have seen there is also a proxy.port / proxy.host property and I was
> hoping to use JUST the port property with the thought that by default the
> hostname would be obtained from the request that solicited the xform in the
> first place - but that does not seem to work. Any thoughts?
>
> Does that all make sense?
>
> --
> View this message in context: http://n4.nabble.com/Versioned-resources-in-separate-deployment-tp1574338p1576044.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
>
>


--
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