Penguin
Diff: ApacheReverseProxy
EditPageHistoryDiffInfoLikePages

Differences between version 7 and predecessor to the previous major change of ApacheReverseProxy.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 7 Last edited on Monday, November 28, 2005 4:32:57 pm by CraigBox Revert
Older page: version 4 Last edited on Wednesday, May 25, 2005 11:30:08 am by CraigBox Revert
@@ -38,8 +38,12 @@
  
 ~ProxyPassReverse, which has the same syntax as ~ProxyPass, will adjust the response URI to keep it pointing at the same place. 
  
 This works fairly well, although it fails if the internal website is a bit more complicated, or is on a different port. Use mod_proxy_html for that! 
+  
+! I get "client denied by server configuration: proxy:http://site" errors  
+  
+You have a <proxy:*> block that is denying your access. Check in mods-enabled/proxy.conf if you're on Debian or Ubuntu, because it defaults to denying all.  
  
 !! mod_proxy_html 
  
 Suppose I want to expose a website that is running on a non-standard port internally. I could use mod_proxy, if the website only used relative or path-only absolute URLS. However, the website happens to know what hostname and port it is supposed to be running on, and has some urls which are targetted directly at the hostname and port. mod_proxy will break in this case, because URLs in the webpages aren't rewritten, and I can't access the device directly from the external network. 
@@ -72,8 +76,14 @@
  
 ----- 
  
 !!Using Apache 2 with Outlook Web Access (OWA) 
+  
+First, enable some useful modules:  
+<pre>  
+a2enmod proxy  
+a2enmod headers  
+</pre>  
  
 Placeholder for when I actually get this going: 
  
 <verbatim> 
@@ -120,4 +130,45 @@
  
 ----- 
  
 Here is a great article on [Apache Proxying|http://www.apacheweek.com/features/reverseproxies] 
+  
+-----  
+  
+!! Tested set of Apache reverse proxy rules  
+  
+by Chris Covington - malth@umich.edu  
+  
+How to ReverseProxy Outlook Web Access (OWA) and Outlook Mobile Access (OMA) with Apache 2.X, mod_proxy and mod_rewrite  
+  
+<verbatim>  
+Add the following to your Apache 2.0+ httpd.conf/ssl.conf to use the ReverseProxy feature:  
+  
+ProxyPreserveHost On  
+  
+#OWA % character in email subject fix  
+RewriteEngine On  
+RewriteMap percentsubject int:escape  
+RewriteCond $1 ^/exchange/.*\%.*$  
+RewriteRule (/exchange/.*) ${percentsubject:$1} [P]  
+  
+#OWA  
+ProxyPass /exchange https://exchangserver.example.com/exchange  
+ProxyPassReverse /exchange https://exchangeserver.example.com/exchange  
+ProxyPass /Exchange https://exchangeserver.example.com/exchange  
+ProxyPassReverse /Exchange https://exchangeserver.example.com/exchange  
+ProxyPass /exchweb https://exchangeserver.example.com/exchweb  
+ProxyPassReverse /exchweb https://exchangeserver.example.com/exchweb  
+ProxyPass /public https://exchangeserver.example.com/public  
+ProxyPassReverse /public https://exchangeserver.example.com/public  
+ProxyPass /iisadmpwd https://exchangeserver.example.com/iisadmpwd  
+ProxyPassReverse /iisadmpwd https://exchangeserver.example.com/iisadmpwd  
+  
+#OMA  
+ProxyPass /oma https://exchangeserver.example.com/oma  
+ProxyPassReverse /oma https://exchangeserver.example.com/oma  
+  
+#ActiveSync  
+ProxyPass /Microsoft-Exchange-ActiveSync https://exchangeserver.example.com/Microsoft-Exchange-ActiveSync  
+ProxyPassReverse /Microsoft-Exchange-ActiveSync https://exchangeserver.example.com/Microsoft-Exchange-ActiveSync  
+  
+</verbatim>