]> git.0d.be Git - mandayejs.git/commitdiff
add README file with sample apache configuration master
authorFrédéric Péters <fpeters@entrouvert.com>
Sun, 22 Mar 2015 19:51:29 +0000 (20:51 +0100)
committerFrédéric Péters <fpeters@entrouvert.com>
Sun, 22 Mar 2015 19:51:29 +0000 (20:51 +0100)
README [new file with mode: 0644]

diff --git a/README b/README
new file mode 100644 (file)
index 0000000..46a254c
--- /dev/null
+++ b/README
@@ -0,0 +1,43 @@
+MandayeJS
+=========
+
+
+Apache Configuration
+--------------------
+
+  <VirtualHost _default_:443>
+    ServerAdmin webmaster@localhost
+    ServerName dev.entrouvert.org.127.0.0.1.xip.io
+    DocumentRoot /var/www/
+    SSLEngine On
+    SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
+    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
+
+    CustomLog /var/log/apache2/mandayejs-access.log combined
+    ErrorLog /var/log/apache2/mandayejs-error.log
+
+    SSLProxyEngine on
+    ProxyPreserveHost On
+    SSLProxyVerify none
+    SSLProxyCheckPeerCN off
+    SSLProxyCheckPeerName off
+
+    ProxyPass /_mandaye/ http://localhost:8000/_mandaye/
+    ProxyPassReverse /_mandaye/ http://localhost:8000/_mandaye/
+
+    RequestHeader unset Accept-Encoding
+    ProxyPass /_mandaye !
+    ProxyPass / https://dev.entrouvert.org/
+    ProxyPassReverse / https://dev.entrouvert.org/
+
+    ExtFilterDefine fixtext mode=output intype=text/html \
+       cmd="/bin/sed -e '\$a<script type=\"text/javascript\" src=\"/_mandaye/static/mandaye.js\"></script>'"
+
+    <Location />
+      SetOutputFilter fixtext
+    </Location>
+    <Location /_mandaye>
+      SetOutputFilter None
+    </Location>
+
+  </VirtualHost>