Define rzi_root /srv/www/rhizi/mux-root.d/{{ domain_name }}/webapp
ServerName {{ domain_name }}.rhizi.net
DocumentRoot ${rzi_root}
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/
# Temporary fix until #529 is implemented
ProxyPass /static/js/model/domain_types.js !
Alias /static/js/model/domain_types.js ${rzi_root}/static/rzi-overrides/js/domain_types.js
# Template fragment overrides - comment out this section to use the defaults
ProxyPass /templates/fragment/ !
Alias /templates/fragment/ ${rzi_root}/rzi-overrides/templates/fragment
Require all denied
Options +FollowSymLinks
Require all granted