Month: July 2013

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 »

Solving 403 Forbidden error during svn commit

Posted on

Every time i commit my code changes to svn i get the following error which was working before:

RA layer request failed
svn: Commit failed (details follow):
svn: CHECKOUT of ‘/svn/myapp/!svn/ver/379/Build/Source/myapp/WebContent/META-INF/context.xml’: 403 Forbidden (https://192.168.124.34)

This is how i solved it.
1. Open svn server manager.
2. Click on Repositories.
3. Right click on your application and click on properties.
4. You will see the list of user.
5. Click on the user you want to give permission and the select Read/Write permission.
6. Click Apply and ok.

Hope this helps.

Virtual Hosting in windows using Apache 2.4.4

Posted on Updated on

virtual-hosting file

Today i came across a situation where i had to do virtual hosting in windows with my application running in tomcat. After lots of try, i could come to a solution.

I had java application running in tomcat on port 8080. So the url was http://localhost:8080/myapplication. To host this application globally i needed to map this url to a global ip. Below are the steps how i achieved this:

1. Redirection of tomcat application is achievable using the Apache HTTP package. Firstly download the appropriate apache package from      http://httpd.apache.org/download.cgi.

Read the rest of this entry »