summaryrefslogtreecommitdiff
path: root/stacks/web/share/reverse-proxy/apache2.conf.example
blob: f702fe011430b0390e4351311f70761effb068aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# MAX25 — Apache httpd 2.4. HTTPD_DOCROOT example: /srv/www

<IfModule mod_proxy.c>
    ProxyPreserveHost On
    ProxyTimeout 3600

    ProxyPass "/max25-websocket/ws" "ws://127.0.0.1:7326/max25" timeout=3600 keepalive=On
    ProxyPassReverse "/max25-websocket/ws" "ws://127.0.0.1:7326/max25"
</IfModule>

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

# UI: cp -r reverse-proxy/docroot/max25-websocket $HTTPD_DOCROOT/
# Proxy: max25-ws-proxy -c /etc/max25/web-proxy.ini
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com