Virtual Hosting

Resolving the issue of css and images not being loaded while redirecting with httpd.conf

Posted on Updated on

After successful virtual hosting and redirecting my application, the redirection worked but the stylesheet(css) and images did not get loaded. For virtual hosting  check my post on Virtual Hosting in windows using Apache 2.4.4.

Everything was mapped correctly but one entry was left out. Firstly, i had just added the following line:

ProxyPass  /myApp      http://localhost:8080/myApp/
ProxyPassReverse /myApp      http://localhost:8080/myApp/

With the above mapping it loads the root file(index.jsp) but does not load the css and images. So to load everything i added the following line:

ProxyPass /   http://localhost:8080/myApp/
ProxyPassReverse /      http://localhost:8080/myApp/

 

Read the rest of this entry »

Advertisements