Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache HTTP Load Balancer File does not exist exception |
|
Author |
|
soausers
Joined: 04 Mar 2013 Posts: 1
|
Posted: Tue 05 Mar '13 7:01 Post subject: Apache HTTP Load Balancer File does not exist exception |
|
|
Hey,
I am using single Apache HTTP Server (2.2.23) as a Load Balancer with two IBM Websphere application server nodes (other machines). I have deployed the simple text based helloWorld application and it works
fine with load balancer. But When I deploy the real application that contains images,css file , java script file. It loads the page without images and show me simple text and gives me the
following Exception on error_logs and similar kind of exceptions
[error] [client 192.217.71.77] File does not exist: /usr/local/apache2/htdocs/application, referer: http://192.168.141.17/application/faces/test.jsp
Interestingly, when I access the application without load balancer, it also works fine.
Here are the load balancer settings
Code: | <VirtualHost *:80>
ServerName test.com:80
<Proxy balancer://mybalancer>;
BalancerMember http://192.168.141.13:9081 route=1
BalancerMember http://192.168.141.13:9082 route=2
Order allow,deny
Allow from all
</Proxy>
RewriteEngine On
RewriteLog "/usr/local/apache2/logs/rewrite.log"
RewriteLogLevel 5
ProxyPass /application/faces/test.jsp balancer://mybalancer/application/faces/test.jsp
ProxyPassReverse /application/faces/test.jsp balancer://mybalancer/application/faces/test.jsp
</VirtualHost>
|
I access the application from my machine to the load balancers machine using the following URL :
http://192.168.141.17/application/faces/test.jsp
Is there any module/configuration Am I missing that stop the Apache to load images on browser?
Please advise. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 21 Mar '13 11:16 Post subject: |
|
|
Usually you create a reverse proxy for a directory, but not a single file. |
|
Back to top |
|
|
|
|
|
|