aboutsummaryrefslogtreecommitdiff
path: root/docs/rest_api/apache2
blob: e6fb6759ab81363c4f9d70672ec43de4afc5e8c9 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# run the bellow command (as root) prior
# $ a2enmod ssl proxy proxy_http

LoadModule ssl_module modules/mod_ssl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

Listen 5000
<VirtualHost *:5000>
    ServerName example.com

    SSLEngine on
    SSLCertificateFile "/etc/letsencrypt/live/example.com/fullchain.pem"
    SSLCertificateKeyFile "/etc/letsencrypt/live/example.com/privkey.pem"

    ProxyRequests off
    ProxyPass / http://[::1]:5001/
    ProxyPassReverse / http://[::1]:5001
    ProxyPreserveHost on
</VirtualHost>