myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Michael Greiner <>
Subject Reverse proxy and jsf, virtual host mapping to subdirectory
Date Sat, 24 Feb 2018 14:35:03 GMT
Dear all,

I have a reverse proxy, that maps to my internal Tomcat, to
(and to

Consider the two attaced simple jsf pages.

If you call, the generated HTML looks like this:

<!DOCTYPE html>
<html xmlns=""><head></head><body>
    <div id="mainContainer">
    <p><a href="/somedomain/test2.jsf" id="test2" name="test2">link
    </div><div id="javax_faces_developmentstage_messages"></div></body>

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

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

View raw message