You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by shyam <sh...@interviewexchange.com> on 2004/03/05 16:07:18 UTC
[users@httpd] STATIC CONTENT WITH APACHE2
Hi all,
I have an application set up at /. Currently my tomcat serves the images
too. But I want my apache to serve the images. I tried the alias . But
as the web app is set up at / even my /images is sent to tomcat. How can
I make apache serve the images ?
Thanks
shyam
[users@httpd] Load balancing with apache 2
Posted by shyam <sh...@interviewexchange.com>.
Hi All,
I followed the steps provided in the documentation for apache load
balancing. I had success the first time but after that I keep getting
this error in my apache logs. My OS is windows 2000. I ca see the
balancing.conf in the conf directory. My Httpd.conf is :
RewriteMap SERVERS rnd:conf/balancing.conf
<Location />
RewriteEngine On
RewriteCond "%{HTTP_COOKIE}"
"(^|;\s*)jsessionid=\w*\.(\w+)($|;)"
RewriteRule "(.*)"
"http://${SERVERS:%2}%{REQUEST_URI}" [P,L]
RewriteRule "^.*;jsessionid=\w*\.(\w+)($|;)"
"http://${SERVERS:$1}%{REQUEST_URI}" [P,L]
RewriteRule "(.*)"
"http://${SERVERS:ALL}%{REQUEST_URI}" [P,L]
</Location>
error logs:
The system cannot find the path specified. : mod_rewrite: can't access
text RewriteMap file /conf/balancing.conf
I have the balancing.conf in the conf directory.
Balancing.conf
LB1 tomcat1:8080
LB3 tomcat2:8080
ALL tomcat1:8080|tomcat2:8080
Please help me. I am struck.
Can you please tell me whats wrong with the above.
Thanks in advance
shyam