# Example proxy configuration


<VirtualHost *:80>
  ServerName domain.tld
  RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
  ServerName domain.tld

  SSLEngine on
  SSLCertificateFile /etc/letsencrypt/live/domain.tld/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem

  ProxyPreserveHost On
  ProxyRequests Off
  ProxyVia Off
  ProxyPass / http://127.0.0.1:1611/
  ProxyPassReverse / http://127.0.0.1:1611/
</VirtualHost>
