From: Wolfram Schneider Date: Mon, 7 Jul 2014 12:10:23 +0000 (+0000) Subject: Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws X-Git-Tag: 1.0.0~419 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=4dde1717db1804f96474e5b53b82ac9ef2d30416;hp=6b98e1aad61b245ac046aa0555ae00bddfaacc0e;p=mkws-moved-to-github.git Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws --- diff --git a/examples/htdocs/mike.html b/examples/htdocs/mike.html index 3761ae5..2ea8c21 100644 --- a/examples/htdocs/mike.html +++ b/examples/htdocs/mike.html @@ -4,8 +4,9 @@ MKWS demo: Orex diff --git a/src/.gitignore b/src/.gitignore deleted file mode 100644 index bb36c2d..0000000 --- a/src/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -README.html -README.odt -README.pdf -handlebars-v1.1.2.js -jquery-1.10.0.min.js -jquery.json-2.4.js -mkws-complete.js -mkws-complete.min.js -mkws.js -mkws.min.js -pz2.js -whitepaper.html -whitepaper.odt -whitepaper.pdf diff --git a/src/mkws-core.js b/src/mkws-core.js index d56b1e7..1de1711 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -436,12 +436,13 @@ mkws.pagerNext = function(tname) { request.get(null, function(data) { if (!$.isXMLDoc(data)) { - alert("service proxy auth response document is not valid XML document, give up!"); + alert("Service Proxy authentication response is not a valid XML document"); return; } var status = $(data).find("status"); if (status.text() != "OK") { - alert("service proxy auth response status: " + status.text() + ", give up!"); + var message = $(data).find("message"); + alert("Service Proxy authentication response: " + status.text() + " (" + message.text() + ")"); return; } diff --git a/tools/apache2/mkws-live b/tools/apache2/mkws-live index 630170d..0630d14 100644 --- a/tools/apache2/mkws-live +++ b/tools/apache2/mkws-live @@ -41,34 +41,3 @@ PerlOutputFilterHandler MyApache2::SetACAO - -# Separate hostname for the MKWS instance of the Service Proxy. -# This allows us to use a different SP configuration that handles -# authentication differently. -# -# Once this is in universal use, we can get rid of the Service Proxy -# stuff in the configuration for mkws.indexdata.com -# - - ServerName sp-mkws.indexdata.com - - ErrorLog /var/log/apache2/sp-mkws-error.log - CustomLog /var/log/apache2/sp-mkws-access.log combined - - DocumentRoot /home/indexdata/mkws/tools/sp-htdocs - - # No rewriting on this server: use the true URL. - # (The security value of rewrite is when the application site does it.) - - Header set Access-Control-Allow-Credentials true - - ProxyPass /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/ - ProxyPassReverse /service-proxy/ http://sp-mkc.indexdata.com/service-proxy/ - # Or use: sp-mkc-sansa.indexdata.com:8080 or sp-mkc-arya.indexdata.com:8080 - - PerlOptions +Parent - PerlSwitches -I/home/indexdata/mkws/tools/mod_perl - - PerlOutputFilterHandler MyApache2::SetACAO - - diff --git a/tools/apache2/sp-mkws-live b/tools/apache2/sp-mkws-live new file mode 100644 index 0000000..bcd9e81 --- /dev/null +++ b/tools/apache2/sp-mkws-live @@ -0,0 +1,34 @@ +# Separate hostname for the MKWS instance of the Service Proxy. +# This allows us to use a different SP configuration that handles +# authentication differently. +# +# Once this is in universal use, we can get rid of the Service Proxy +# stuff in the configuration for mkws.indexdata.com +# + + ServerName sp-mkws.indexdata.com + + ErrorLog /var/log/apache2/sp-mkws-error.log + CustomLog /var/log/apache2/sp-mkws-access.log combined + + DocumentRoot /home/indexdata/mkws/tools/sp-htdocs + + # No rewriting on this server: use the true URL. + # (The security value of rewrite is when the application site does it.) + + Header set Access-Control-Allow-Credentials true + + ProxyPreserveHost On + # We could use any of the following: + # sp-mkc.indexdata.com/service-proxy/ -- multiplexer + # sp-mkc-sansa.indexdata.com:8080/service-proxy/ -- 1st back-end server + # sp-mkc-arya.indexdata.com:8080/service-proxy/ -- 2nd back-end server + ProxyPass /service-proxy/ http://sp-mkc-sansa.indexdata.com:8080/service-proxy/ + ProxyPassReverse /service-proxy/ http://sp-mkc-sansa.indexdata.com:8080/service-proxy/ + + PerlOptions +Parent + PerlSwitches -I/home/indexdata/mkws/tools/mod_perl + + PerlOutputFilterHandler MyApache2::SetACAO + +