httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Browne" <>
Subject [users@httpd] Proxying requests not on MyMachine
Date Mon, 25 Jul 2005 18:44:02 GMT
	I want to use Apache to implement this scenario: Client -> MyMachine
(with static content + cache, back to client if request here -> Remote
Server -> MyMachine (remote content in MyCache, if applicable) -> Client.

Currently, I use this configuration-
RewriteEngine On	
RewriteMap lowercase int:tolower
RewriteCond  %{REQUEST_URI}  !^/error/ 		
RewriteRule ^/(.*)$ /webcontent/${lowercase:%{SERVER_NAME}}/$1 

RewriteCond  %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.htm  -s
RewriteRule  ^/(.*)$ - [S=3]

RewriteRule  ^/(.*)$ - [S=2]

RewriteCond  %{SERVER_PORT}  !443
RewriteRule  ^(.*)$  http://${lowercase:%{SERVER_NAME}}%{REQUEST_URI}

RewriteCond  %{SERVER_PORT}  443
RewriteRule  ^(.*)$
https://${lowercase:%{SERVER_NAME}}%{REQUEST_URI}%{QUERY_STRING} [P]

RewriteLog logs/rewriteLog 
RewriteLogLevel 9

	The problem is that if the last rewrite rule applies, the request
for remote content is proxied with the [P] flag (mod_rewrite?, ProxyPass?)
which does not proxy basic, NTLM, or ssl authentication. Authentication
works fine if I simply use 'ProxyRequests On,' but then the rewrites are
proxied too. How can I proxy in the same manner as 'ProxyRequests On' and
still use the Rewrite module?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message