Skip to content

Instantly share code, notes, and snippets.

@fiqryq
Last active December 29, 2021 06:43
Show Gist options
  • Save fiqryq/9f71872fd092a10759cd6d152503c237 to your computer and use it in GitHub Desktop.
Save fiqryq/9f71872fd092a10759cd6d152503c237 to your computer and use it in GitHub Desktop.
server {
listen 127.0.0.1:443 ssl;
server_name site1.example.com;
include common.conf;
location / {
proxy_pass http://127.0.0.2:8081;
}
}
server {
listen 127.0.0.1:443 ssl;
server_name site2.example.com;
include common.conf;
location / {
proxy_pass http://127.0.0.2:8082;
}
}
server {
listen 127.0.0.1:443 ssl;
server_name site3.example.com;
include common.conf;
location / {
proxy_pass http://127.0.0.3:8083;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment