From 15b1ed5dc5d5326ed0b5ea3ac48dc9bc915336fd Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Thu, 27 Feb 2014 16:27:14 +0100 Subject: [PATCH] My tests, setup stuff --- .gitignore | 1 + examples/htdocs/heikki.html | 70 +++++++++++++++++++++++++++++++++++++++++++ tools/apache2/README | 3 ++ tools/apache2/mkws-heikki | 52 ++++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 .gitignore create mode 100644 examples/htdocs/heikki.html create mode 100644 tools/apache2/mkws-heikki diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/examples/htdocs/heikki.html b/examples/htdocs/heikki.html new file mode 100644 index 0000000..b772dfd --- /dev/null +++ b/examples/htdocs/heikki.html @@ -0,0 +1,70 @@ + + + + + + MKWS demo: Heikki's playground + + + + + + + + + + +

Heikki's test

+
Welcome to Heikki's little test
+ + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/tools/apache2/README b/tools/apache2/README index aa99a1f..c87487d 100644 --- a/tools/apache2/README +++ b/tools/apache2/README @@ -3,3 +3,6 @@ You will need to enable the Rewrite module for this to work: $ sudo a2enmod rewrite headers proxy deflate $ sudo service apache2 reload +There are example configurations under examples/apache2 + +Most developers have their own setup under tools/apache2 diff --git a/tools/apache2/mkws-heikki b/tools/apache2/mkws-heikki new file mode 100644 index 0000000..111b35b --- /dev/null +++ b/tools/apache2/mkws-heikki @@ -0,0 +1,52 @@ +# Apache config for Heikki's workstation (tapas) +# May also work on Heikki's home machine (corelli) and laptop (tsatsiki) +# Needs the host name to be defined in /etc/hosts +# cd /etc/apache2/sites-available +# sudo ln -s /home/heikki/proj/mkws/tools/apache2/mkws-heikki . +# sudo a2ensite mkws-heikki +# sudo service apache2 reload +# (make sure the path from /home to .../htdocs is world-readable!) +# + + + ServerName mkws-heikki.localdomain + ServerAlias mkws mkws-heikki + + RewriteEngine on + RewriteLogLevel 1 + RewriteLog /var/log/apache2/mkws-dev-rewrite.log + + DocumentRoot /home/heikki/proj/mkws/examples/htdocs + Alias /tools/htdocs /home/heikki/proj/mkws/tools/htdocs + + # allow cors + Header set Access-Control-Allow-Credentials true + Header set Access-Control-Allow-Origin "*" + + # compress text output + + AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml + SetOutputFilter DEFLATE + + + RewriteRule /service-proxy-auth/ /service-proxy/?command=auth&action=login&username=demo&password=demo [P] # [NE,P] + + # For MKC Service Proxy + ProxyPass /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/ + ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/ + + ProxyPass /pazpar2/ http://localhost:8004/pazpar2/ + ProxyPassReverse /pazpar2/ http://localhost:8004/pazpar2/ + +# ProxyPass /service-proxy/ http://mk2-test.indexdata.com/service-proxy/ +# ProxyPassReverse /service-proxy/ http://mk2-test.indexdata.com/service-proxy/ + + + AllowOverride None + Options FollowSymLinks + Order allow,deny + Allow from all + + + + -- 1.7.10.4