I'm trying to build a JSF app on a glassfish 4.1 server. I have a apache 2.4 in front of glassfish as a proxy server. The app is using the bootsfaces or the primefaces frameworks. The same happens to both of them.
What's my problem. When I run the app within my network, directly from the glassfish, everything are ok. It is also looking good when I run the app from web bypassing the apache proxy. But when I run it be calling it via apache, the css are not working.
I have a look at the page source code and I found this: On the head part of my page, I have the
<link type="text/css" rel="stylesheet" href="/gk-1.0-SNAPSHOT/faces/javax.faces.resource/theme.css?ln=primefaces-aristo" />
link.
When I click on the href from the "glassfish" page, I can view the css contents.
But when I click on the href from the "apache" page, I got an 404 error page:
<h1>HTTP Status 404 - Not Found</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Not Found</p><p><b>description</b>The requested resource is not available.</p>
Both the jars are included to my war file.
Any help will be valueable
Thank you