[users@httpd] Proxying requests not on MyMachine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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}  -d

RewriteCond  %{DOCUMENT_ROOT}%{REQUEST_FILENAME}index.htm  -s

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

 

RewriteCond  %{DOCUMENT_ROOT}%{REQUEST_FILENAME}  -s

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

 

RewriteCond  %{DOCUMENT_ROOT}%{REQUEST_FILENAME}  !-s

RewriteCond  %{SERVER_PORT}  !443

RewriteRule  ^(.*)$   [P,S=1]

 

RewriteCond  %{DOCUMENT_ROOT}%{REQUEST_FILENAME}  !-s

RewriteCond  %{SERVER_PORT}  443

RewriteRule  ^(.*)$  [P]

 

RewriteLog logs/rewriteLog

RewriteLogLevel 9

 

      The problem is that if either of the last two rewrite rules apply, 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?

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux