"Customer" Apache2 configuration used RewriteRule instead of ProxyPass
authorMike Taylor <mike@indexdata.com>
Thu, 12 Dec 2013 16:54:36 +0000 (16:54 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 12 Dec 2013 16:54:36 +0000 (16:54 +0000)
to handle /service-proxy-auth/

Acts as an example of MKWS-38 ("More secure authentication for MKWS")

examples/apache2/mkws-examples-mike

index d5f2043..1b308ac 100644 (file)
@@ -4,8 +4,8 @@
     ErrorLog /var/log/apache2/mkws-examples-error.log
     CustomLog /var/log/apache2/mkws-examples-access.log combined
 
     ErrorLog /var/log/apache2/mkws-examples-error.log
     CustomLog /var/log/apache2/mkws-examples-access.log combined
 
-    ProxyPass        /service-proxy-auth-mike http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=demo&password=demo
-    ProxyPassReverse /service-proxy-auth-mike http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=demo&password=demo
+    RewriteEngine on
+    RewriteRule      /service-proxy-auth/ http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=demo&password=demo [P]
 </VirtualHost>
 
 <VirtualHost *:80>
 </VirtualHost>
 
 <VirtualHost *:80>