httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank X <>
Subject [users@httpd] Proxy balancer and Apache Virtual Host rewrite single HTTP header
Date Fri, 04 Oct 2013 01:00:49 GMT
We have the following configuration, one apache HTTP server which proxies
AJP requests to an application on another host, as in the Proxy balancer
configuration below.

The problem we have is the application only understands one HOST http
header, i.e, but we require to be
rewritten to however still show the

We also have HTTP proxies in between the browser and hitting the Apache
server, and do not want this content to be cached!

The following is our configuration:

<Proxy balancer://ajp-cluster>
Order deny,allow
Allow from all
BalancerMember ajp://

<VirtualHost *:80>
ServerAlias *
   RewriteEngine on
   RewriteCond %{HTTP_HOST} ^
   RewriteRule ^/(.*)$$1 [L,R=301,E=nocache:1]
   ## Set the response header if the "nocache" environment variable is set
   ## in the RewriteRule above.
   Header always set Cache-Control "no-store, no-cache,
must-revalidate" env=nocache
   ## Set Expires too ...
   Header always set Expires "Thu, 01 Jan 1970 00:00:00 GMT" env=nocache
   ProxyPass / balancer://ajp-cluster/
   ProxyPassReverse / balancer://ajp-cluster/

View raw message