summaryrefslogtreecommitdiff
path: root/share/reverse-proxy/apache2.conf.example
blob: a361532b99b19c15908333092b816af1c50e1d35 (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
# HyBBX — Apache httpd 2.4. HTTPD_DOCROOT example: /srv/www

<IfModule mod_proxy.c>
    ProxyPreserveHost On
    ProxyTimeout 3600
    SSLProxyEngine On
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off

    ProxyPass "/hybbx-websocket/ws" "wss://127.0.0.1:4591/hybbx" timeout=3600 keepalive=On
    ProxyPassReverse "/hybbx-websocket/ws" "wss://127.0.0.1:4591/hybbx"
</IfModule>

Alias /hybbx-websocket /srv/www/hybbx-websocket
<Directory /srv/www/hybbx-websocket>
    DirectoryIndex index.php
    Require all granted
    <FilesMatch \.php$>
        SetHandler application/x-httpd-php
    </FilesMatch>
</Directory>

# UI: cp -r reverse-proxy/docroot/hybbx-websocket $HTTPD_DOCROOT/
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com