Last active
August 14, 2022 14:53
-
-
Save KalanaPerera/52c1cd5961efd1748ae168eaa3301438 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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