ServerName example.org ServerName example.org ServerAlias openpgpkey.example.org ServerAlias openpgpkey DocumentRoot /var/www/html RewriteEngine On RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} ServerName example.org ServerAlias openpgpkey.example.org ServerAlias openpgpkey DocumentRoot /var/www/html SSLEngine On SSLCertificateFile /etc/ssl/cert.pem SSLCertificateKeyFile /etc/ssl/key.pem ProxyPass /.well-known/openpgpkey http://localhost:8080/.well-known/openpgpkey ProxyPassReverse /.well-known/openpgpkey http://localhost:8080/.well-known/openpgpkey