From: Mike Taylor Date: Wed, 20 Aug 2014 10:45:31 +0000 (+0100) Subject: New file, sp-mkws-mike, configures a local Apache2 to proxy X-Git-Tag: 1.0.0~39^2~7^2~4^2~14 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4b09283114e730e5c8eca23def3cd44e657d5b1b;p=mkws-moved-to-github.git New file, sp-mkws-mike, configures a local Apache2 to proxy /service-proxy/ to port 8585 (my local instance running under "mvn jetty:run-war") inserting the crucial Access-Control-Allow-Credentials header whose absence was preventing authentication from working. --- diff --git a/tools/apache2/sp-mkws-mike b/tools/apache2/sp-mkws-mike new file mode 100644 index 0000000..297f24b --- /dev/null +++ b/tools/apache2/sp-mkws-mike @@ -0,0 +1,21 @@ + + ServerName x.sp-mkws.indexdata.com + + ErrorLog /var/log/apache2/sp-mkws-error.log + CustomLog /var/log/apache2/sp-mkws-access.log combined + + DocumentRoot /usr/local/src/git/mkws/tools/sp-htdocs + + Header set Access-Control-Allow-Credentials true + + ProxyPreserveHost On + # We could use any of the following: + ProxyPass /service-proxy/ http://x.sp-mkws.indexdata.com:8585/service-proxy/ + ProxyPassReverse /service-proxy/ http://x.sp-mkws.indexdata.com:8585/service-proxy/ + +# PerlOptions +Parent +# PerlSwitches -I/home/indexdata/mkws/tools/mod_perl +# +# PerlOutputFilterHandler MyApache2::SetACAO +# +