summaryrefslogtreecommitdiff
path: root/res/apache/sites-availalbe/rhizi.local.conf
blob: 098c7d88f936370695af2eb065926d3660a6f6ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<VirtualHost *:80>

    ServerName rhizi.local
    DocumentRoot /srv/www/rhizi/webapp

    LogLevel info
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access_rhizi.local.log combined
 
    SetOutputFilter DEFLATE

    RewriteEngine On
    RewriteRule ^/?$ /index [L,R]

    # [!] order critical
    ProxyRequests     Off
    ProxyPreserveHost On
    ProxyPass         /socket.io/  ws://127.0.0.1:8080/socket.io/
    ProxyPass         / http://127.0.0.1:8080/
    ProxyPassReverse  / http://rhizi.local/

    <Directory /srv/www/rhizi/auth >
        Require all denied
    </Directory>

    <Directory /srv/www/rhizi/webapp >
        Options +FollowSymLinks

        Require all granted
    </Directory>

</VirtualHost>