Skip to content

Instantly share code, notes, and snippets.

@KalanaPerera
Last active August 14, 2022 14:53
Show Gist options
  • Save KalanaPerera/52c1cd5961efd1748ae168eaa3301438 to your computer and use it in GitHub Desktop.
Save KalanaPerera/52c1cd5961efd1748ae168eaa3301438 to your computer and use it in GitHub Desktop.
<VirtualHost *:443>
ServerName backend.localhost
SSLEngine on
SSLCertificateFile C:/xampp/apache/conf/backend.localhost/backend.localhost.pem
SSLCertificateKeyFile C:/xampp/apache/conf/backend.localhost/backend.localhost-key.pem
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
<Location "/">
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8000/
ProxyPassReverse http://127.0.0.1:8000/
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment