You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by congo thomas <ap...@thva.dk> on 2011/09/19 16:44:27 UTC
[users@httpd] Proxy all but one location
Hello experts,
I have this application (geowebcache its called), running in tomcat. I use
Apache2 to proxy all http requests into the geowebcache. However I have
come across this boundry where my knowledge of apache configuration
reaches my edges... I dont know how to exclude /cache from being proxied.
Right now my config looks like:
###
ServerName gwc-server
DocumentRoot /var/www/gwc/wwwroot
<Directory "/var/www/gwc/wwwroot/WEB-INF" >
#disallow webinf from being browsed via apache
AllowOverride None
Order deny,allow
deny from all
</Directory>
ProxyRequests On
ProxyPass / http://gwc-server:9830/
ProxyPassReverse / http://gwc-server:9830/
###
Please understand that gwc-server:9830 is the tomcat hosting the
"gwc"-application. Tomcat is running on the same host as apache.
How do i make http://gwc-server/cache not being routed through tomcat?
(tomcat serves it aswell, but since its static content, i want to skip
this layer due to heavy load; hence performance issues with the java
tomcat serving it).
br
congo thomas
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Proxy all but one location
Posted by Tom Evans <te...@googlemail.com>.
On Mon, Sep 19, 2011 at 3:44 PM, congo thomas <ap...@thva.dk> wrote:
> Hello experts,
>
> I have this application (geowebcache its called), running in tomcat. I use
> Apache2 to proxy all http requests into the geowebcache. However I have
> come across this boundry where my knowledge of apache configuration
> reaches my edges... I dont know how to exclude /cache from being proxied.
>
> Right now my config looks like:
> ###
> ServerName gwc-server
> DocumentRoot /var/www/gwc/wwwroot
> <Directory "/var/www/gwc/wwwroot/WEB-INF" >
> #disallow webinf from being browsed via apache
> AllowOverride None
> Order deny,allow
> deny from all
> </Directory>
> ProxyRequests On
> ProxyPass / http://gwc-server:9830/
> ProxyPassReverse / http://gwc-server:9830/
> ###
>
> Please understand that gwc-server:9830 is the tomcat hosting the
> "gwc"-application. Tomcat is running on the same host as apache.
>
> How do i make http://gwc-server/cache not being routed through tomcat?
> (tomcat serves it aswell, but since its static content, i want to skip
> this layer due to heavy load; hence performance issues with the java
> tomcat serving it).
>
>
> br
> congo thomas
ProxyPass /cache !
ProxyPass / http://gwc-server:9830/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org