]> git.0d.be Git - mandayejs.git/blob - README
add README file with sample apache configuration
[mandayejs.git] / README
1 MandayeJS
2 =========
3
4
5 Apache Configuration
6 --------------------
7
8   <VirtualHost _default_:443>
9     ServerAdmin webmaster@localhost
10     ServerName dev.entrouvert.org.127.0.0.1.xip.io
11     DocumentRoot /var/www/
12     SSLEngine On
13     SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
14     SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
15
16     CustomLog /var/log/apache2/mandayejs-access.log combined
17     ErrorLog /var/log/apache2/mandayejs-error.log
18
19     SSLProxyEngine on
20     ProxyPreserveHost On
21     SSLProxyVerify none
22     SSLProxyCheckPeerCN off
23     SSLProxyCheckPeerName off
24
25     ProxyPass /_mandaye/ http://localhost:8000/_mandaye/
26     ProxyPassReverse /_mandaye/ http://localhost:8000/_mandaye/
27
28     RequestHeader unset Accept-Encoding
29     ProxyPass /_mandaye !
30     ProxyPass / https://dev.entrouvert.org/
31     ProxyPassReverse / https://dev.entrouvert.org/
32
33     ExtFilterDefine fixtext mode=output intype=text/html \
34        cmd="/bin/sed -e '\$a<script type=\"text/javascript\" src=\"/_mandaye/static/mandaye.js\"></script>'"
35
36     <Location />
37       SetOutputFilter fixtext
38     </Location>
39     <Location /_mandaye>
40       SetOutputFilter None
41     </Location>
42
43   </VirtualHost>