From: Jakub Skoczen Date: Tue, 16 Jul 2013 11:15:22 +0000 (+0200) Subject: Apache config and host page for new CORS handling X-Git-Tag: 0.9.1~242^2~24 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=0a863ef4eb275c53f5e5a3e5a2be3571a60fe017;p=mkws-moved-to-github.git Apache config and host page for new CORS handling --- 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/ + +