Created
October 5, 2020 21:48
-
-
Save ahmetozer/9f191d336f995530123d0d195aa5d0fe to your computer and use it in GitHub Desktop.
Nginx https termination with custom domain on ip
This file contains hidden or 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
http { | |
server { | |
listen 80; | |
listen [::]:80 | |
server_name example.com; | |
location / { | |
proxy_pass https://127.0.0.1; | |
proxy_ssl_server_name on; | |
proxy_ssl_name example.local; | |
proxy_set_header Host example.local; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment