Penguin
Diff: ApacheReverseProxy
EditPageHistoryDiffInfoLikePages

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

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

Newer page: version 4 Last edited on Wednesday, May 25, 2005 11:30:08 am by CraigBox Revert
Older page: version 1 Last edited on Saturday, March 5, 2005 1:15:28 pm by DanielLawson Revert
@@ -68,8 +68,56 @@
  
 The first ~ProxyHTMLURLMap directive tells mod_proxy_html to rewrite any instance of "http://cups.internal.org:631/" to "/cups". This means any absolute URLs will be rewritten to point under the /cups/ Location, which will then get proxied appropriately. 
  
 The remaining ~ProxyHTMLURLMap directives handle URLs with just a set path, eg "/printers/printer1/". This will get rewritten to "/cups/printers/printer1/" and then proxied correctly. The last directive is a no-rewrite rule, intended to prevent infinite looping. 
+  
+-----  
+  
+!!Using Apache 2 with Outlook Web Access (OWA)  
+  
+Placeholder for when I actually get this going:  
+  
+<verbatim>  
+<VirtualHost 1.2.3.4:80>  
+ ServerName webmail.example.org  
+ DocumentRoot /var/www/html/exchange  
+ RedirectMatch ^/(index.html?)$ https://webmail.example.org/exchange/  
+ RedirectMatch ^/exchange$ https://webmail.example.org/exchange/  
+</VirtualHost>  
+  
+<VirtualHost 1.2.3.4:443>  
+ # This secures the server from being used as a third party  
+ # proxy server  
+ ProxyRequests Off  
+  
+ # Allows the proxying of a SSL connection  
+ SSLProxyEngine On  
+ ProxyVia On  
+  
+ DocumentRoot /home/user/mail_proxy/html/  
+ RequestHeader set Front-End-Https "On"  
+  
+ ServerName mail  
+  
+ # Set up SSL to work with this host  
+ SSLEngine On  
+ SSLCertificateFile /etc/apache/webmail-proxy/server.crt  
+ SSLCertificateKeyFile /etc/apache/webmail-proxy/server.key  
+  
+ SSLProxyMachineCertificateFile /etc/apache/webmail-proxy/certnew.cer  
+  
+ ProxyPass /exchange/ https://mail-internal/exchange/  
+ ProxyPassReverse /exchange/ https://mail-internal/exchange/  
+  
+ ProxyPass /exchweb/ https://mail-internal/exchweb/  
+ ProxyPassReverse /exchweb/ https://mail-internal/exchweb/  
+  
+ ProxyPass /public/ https://mail-internal/public/  
+ ProxyPassReverse /public/ https://mail-internal/public/  
+  
+ ProxyPreserveHost On  
+</VirtualHost>  
+</verbatim>  
  
 ----- 
  
 Here is a great article on [Apache Proxying|http://www.apacheweek.com/features/reverseproxies]