Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.11 KB

configure_apache_mue.md

File metadata and controls

43 lines (37 loc) · 1.11 KB

Configure Apache2 for MUE Insight Explorer on monetaryunit.org

sites-enabled/000-default.conf

#<VirtualHost ...>
#    ProxyPreserveHost On
#    ProxyPass        "/" "http://localhost:8080/"
#    ProxyPassReverse "/" "http://localhost:8080/"
#    ServerName api.monetaryunit.org
#</VirtualHost>

sites-enabled/001.conf

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyPass        "/" "http://localhost:8080/"
    ProxyPassReverse "/" "http://localhost:8080/"
    ServerName api.monetaryunit.org
</VirtualHost>

sites-available/default-ssl.conf

<IfModule>
[...]
        <VirtualHost *:443>
                ServerName api.monetaryunit.org
                ProxyPreserveHost On
                ProxyPass        "/" "http://localhost:3000/"
                ProxyPassReverse "/" "http://localhost:3000/"
        </VirtualHost>

        <VirtualHost *:443>
                ServerName explorer.monetaryunit.org
                ProxyPreserveHost On
                ProxyPass        "/" "http://localhost:8080/"
                ProxyPassReverse "/" "http://localhost:8080/"
        </VirtualHost>

</IfModule>