# apache site for kjv-api (needs mod_proxy, mod_proxy_http and mod_headers: # sudo a2enmod proxy proxy_http headers) # Change domain.tld to your domain, copy to /etc/apache2/sites-available/ and a2ensite it. # For https: sudo certbot --apache -d domain.tld ServerName domain.tld ProxyPreserveHost On ProxyRequests Off ProxyVia Off # the program limits how fast each visitor can make plans and shortcodes by this address RequestHeader set X-Real-IP "%{REMOTE_ADDR}s" ProxyPass / http://127.0.0.1:1611/ ProxyPassReverse / http://127.0.0.1:1611/