summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-29 18:00:01 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-29 18:00:01 +0300
commitee5364c0169038169fa526d4600cccad80b91c5d (patch)
treea81e0982ff06315e8a2f94cab989fefc059546e5 /res
parentdd4c734e44ff6510805cf0947073851773f6e58b (diff)
rz-mux-tool: apache site template
Diffstat (limited to 'res')
-rw-r--r--res/rz-mux/apache-conf-template.d/x.rhizi.net.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/res/rz-mux/apache-conf-template.d/x.rhizi.net.conf b/res/rz-mux/apache-conf-template.d/x.rhizi.net.conf
new file mode 100644
index 00000000..4bd655b7
--- /dev/null
+++ b/res/rz-mux/apache-conf-template.d/x.rhizi.net.conf
@@ -0,0 +1,32 @@
+<VirtualHost *:80>
+
+ ServerName {{ domain_name }}.rhizi.net
+ DocumentRoot /srv/www/rhizi/mux-root.d/{{ domain_name }}/webapp
+
+ LogLevel info
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access_{{ domain_name }}.rhizi.net.log combined
+
+ SetOutputFilter DEFLATE
+
+ RewriteEngine On
+ RewriteRule ^/?$ /index [L,R]
+
+ # [!] order critical
+ ProxyRequests Off
+ ProxyPreserveHost On
+ ProxyPass /socket.io/ ws://127.0.0.1:{{ rz_port__http }}/socket.io/
+ ProxyPass / http://127.0.0.1:{{ rz_port__http }}/
+ ProxyPassReverse / http://{{ domain_name }}.rhizi.net/
+
+ <Directory /srv/www/rhizi/mux-root.d/{{ domain_name }}/auth >
+ Require all denied
+ </Directory>
+
+ <Directory /srv/www/rhizi/mux-root.d/{{ domain_name }}/webapp >
+ Options +FollowSymLinks
+
+ Require all granted
+ </Directory>
+
+</VirtualHost> \ No newline at end of file