HTTPS config for mkws-dev, MKWS-102
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 22 Jan 2014 11:32:00 +0000 (11:32 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 22 Jan 2014 11:32:00 +0000 (11:32 +0000)
tools/apache2/mkws-dev-ssl-px [new file with mode: 0644]

diff --git a/tools/apache2/mkws-dev-ssl-px b/tools/apache2/mkws-dev-ssl-px
new file mode 100644 (file)
index 0000000..35e5a57
--- /dev/null
@@ -0,0 +1,48 @@
+# A very simple configuration to proxy the irspy
+
+<VirtualHost *:443>
+    ServerName mkws.indexdata.com 
+    ServerAlias mkws-dev.indexdata.com
+
+  <IfModule mod_ssl.c>
+    SSLEngine on
+    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+
+    #SSLCertificateFile /etc/ssl/certs/indexdata.com/id.cert
+    #SSLCertificateKeyFile /etc/ssl/certs/indexdata.com/id.key
+
+    SSLProxyEngine on
+  </IfModule>
+
+    # Remove the X-Forwarded-For header, as the proxy appends to it,
+    # and we need a clean ip address for the statistics
+    # RequestHeader unset X-Forwarded-For early
+    # Never mind
+
+    # ProxyRequests off
+    <Proxy *>
+      Order deny,allow
+      Allow from all
+    </Proxy>
+
+    ProxyPreserveHost On
+    ProxyPass         / http://dart/
+    ProxyPassReverse  / http://dart/
+
+    # Experiments to hunt down bu 3716
+    # Increase buffer size so that we don't go for chunked stuff
+    # ProxyIOBufferSize 8192
+    # Didn't help
+    # Disable gzipping
+    # RequestHeader unset Accept-Encoding
+    # Didn't help 
+    # ProxyReceiveBufferSize 8192
+    # Didn't help 
+    SetEnv force-proxy-request-1.0 1
+    SetEnv proxy-nokeepalive 1
+
+    # These are the logs for the proxying operation
+    ErrorLog     /var/log/apache2/mkws-dev-ssl-error.log
+    CustomLog    /var/log/apache2/mkws-dev-ssl-access.log combined
+</VirtualHost>
+