Created
July 16, 2021 11:01
-
-
Save jessegoodier/da78a8e3bd30ed4517e66eba5e474c29 to your computer and use it in GitHub Desktop.
vmware vcsa 6.7 nginx basic config (fix for HTTP Status 400 – Bad Request)
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
server { | |
# server_name your.host.lan # use this if not the only proxy for 443 | |
listen 443 ssl http2 default_server; # the default_server may break other servers listening on 443, and there can only be one. | |
ssl_certificate /etc/ssl/letsencrypt/fullchain.pem; | |
ssl_certificate_key /etc/ssl/letsencrypt/privkey.pem; | |
location / { | |
proxy_pass https://xxx; #IP or fqdn | |
proxy_set_header Host $http_host; # the magic | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment