Skip to content

Commit 8c343f0

Browse files
committed
correctly handle the wildcard subdomain
1 parent 8e5531d commit 8c343f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/web-server/nginx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
```nginx
6767
server {
68-
server_name YOUR_SUBDOMAIN;
68+
server_name YOUR_SUBDOMAIN *.YOUR_SUBDOMAIN;
6969

7070
# HTTP configuration
7171
listen 80;
@@ -89,7 +89,7 @@
8989
proxy_http_version 1.1;
9090
proxy_set_header Upgrade $http_upgrade;
9191
proxy_set_header Connection $connection_upgrade;
92-
proxy_set_header Host $server_name;
92+
proxy_set_header Host $host;
9393
proxy_set_header X-Real-IP $remote_addr;
9494
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
9595
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;

0 commit comments

Comments
 (0)