Re: Reverse proxy and jsf, virtual host mapping to subdirectory

2018-02-24 Thread Thomas Andraschko
Hi,

i don't think we have a way to overwrite this behavior. I would try virtual
hosts.



2018-02-24 15:35 GMT+01:00 Jan Michael Greiner <
jan0mich...@yahoo.com.invalid>:

> Dear all,
>
> I have a reverse proxy, that maps https://www.somedomain.com/ to my
> internal Tomcat, to https://192.168.0.5:8080/somedomain/ (and
> https://www.someotherdomain.org/ to https://192.168.0.5:8080/
> someotherdomain/).
>
> Consider the two attaced simple jsf pages.
>
> If you call https://www.somedomain.com/test.jsf, the generated HTML looks
> like this:
>
> 
> http://www.w3.org/1999/xhtml;>
> 
> link
> 
> 
> 
> 
>
> And the link does not work, because it should be just /test2.jsf.
>
> The most straight forward solution that comes to my mind, is to configure
> virtual hosts in Tomcat.
>
> But I would like to ask:
>
> Is there a way, to solve this easily, without configuring virtual hosts in
> the internal tomcat?
>
> Is it possible, to have h:link generate relative paths, or to statically
> configure the subdirectory name for JSF?
>
>
> Best regards and thank you
>
> Jan Michael Greiner
>


Reverse proxy and jsf, virtual host mapping to subdirectory

2018-02-24 Thread Jan Michael Greiner
Dear all,

I have a reverse proxy, that maps https://www.somedomain.com/ to my internal 
Tomcat, to https://192.168.0.5:8080/somedomain/ (and 
https://www.someotherdomain.org/ to https://192.168.0.5:8080/someotherdomain/).

Consider the two attaced simple jsf pages.

If you call https://www.somedomain.com/test.jsf, the generated HTML looks like 
this:


http://www.w3.org/1999/xhtml;>

link





And the link does not work, because it should be just /test2.jsf.

The most straight forward solution that comes to my mind, is to configure 
virtual hosts in Tomcat.

But I would like to ask:

Is there a way, to solve this easily, without configuring virtual hosts in the 
internal tomcat?

Is it possible, to have h:link generate relative paths, or to statically 
configure the subdirectory name for JSF?


Best regards and thank you

Jan Michael Greiner


test.xhtml
Description: application/xhtml


test2.xhtml
Description: application/xhtml