Files
kjv_api/dist/kjv-api.apache.conf
2026-10-26 20:30:43 -07:00

17 lines
597 B
Plaintext

# 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
<VirtualHost *:80>
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/
</VirtualHost>