From 0a863ef4eb275c53f5e5a3e5a2be3571a60fe017 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Tue, 16 Jul 2013 13:15:22 +0200 Subject: [PATCH] Apache config and host page for new CORS handling --- examples/htdocs/index-jakub.html | 22 ++++++++++++++++++++++ tools/apache2/mkws-jakub | 17 +++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 examples/htdocs/index-jakub.html create mode 100644 tools/apache2/mkws-jakub diff --git a/examples/htdocs/index-jakub.html b/examples/htdocs/index-jakub.html new file mode 100644 index 0000000..fc2539a --- /dev/null +++ b/examples/htdocs/index-jakub.html @@ -0,0 +1,22 @@ + + + + MKWS demo client + + + + + +
+
+
+
+
+
+ + diff --git a/tools/apache2/mkws-jakub b/tools/apache2/mkws-jakub new file mode 100644 index 0000000..6672676 --- /dev/null +++ b/tools/apache2/mkws-jakub @@ -0,0 +1,17 @@ + + ServerName mkws-origin + DocumentRoot /Users/jakub/code/mkws/tools/htdocs + + # auth + RewriteEngine on + RewriteRule /service-proxy-auth/ /service-proxy/?command=auth&action=login&use + rname=demo&password=demo [P] # [NE,P] + + # allow cors + Header set Access-Control-Allow-Origin * + + # For MKC Service Proxy + ProxyPass /service-proxy/ http://mk2-test.indexdata.com/service-proxy/ + ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/ + + -- 1.7.10.4