From ee5364c0169038169fa526d4600cccad80b91c5d Mon Sep 17 00:00:00 2001 From: LV-426 Date: Wed, 29 Apr 2015 18:00:01 +0300 Subject: rz-mux-tool: apache site template --- res/rz-mux/apache-conf-template.d/x.rhizi.net.conf | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 res/rz-mux/apache-conf-template.d/x.rhizi.net.conf 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 @@ + + + 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/ + + + Require all denied + + + + Options +FollowSymLinks + + Require all granted + + + \ No newline at end of file -- cgit v1.3.1