Hello,
I am having some problems setting up an Apache Web Server in front of Jboss.
I rent a vps with apache and jboss running up and working fine separately.
Jboss is working fine when I want to acess my app through http://myVpsUrl.com:8080/myApp/
I am trying to redirect http://myUrl.com to my jboss app.
In Apache conf file I set :
<VirtualHost *:80>
ServerName myUrl.com
ServerAlias myUrl.com
ProxyPass / http://localhost:8080/context/
ProxyPassReverse / http://localhost:8080/context/
ProxyPassReverseCookiePath / /
ProxyRequests On
</VirtualHost>
When I am going to myUrl.com I can reach the web app homepage but :
My style and images are located in
http://myVpsUrl:8080/context/css/icons/devices-14-20.png
http://myVpsUrl:8080/context/javascript/util.js
http://myVpsUrl:8080/context/images/*
etc...
I tried to add
ProxyPreserveHost On
But I'm getting an error :
The page isn't redirecting properly or Infinite redirection
I am stuck with this error since a week, any help would be sincerely appreciated.
Thank you.