mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-08-23 16:01:57 +00:00
fix: Replace mDNS .local domain with .example domain
See RFC 6762 for details on mDNS .local domain: https://datatracker.ietf.org/doc/html/rfc6762 And RFC 6761 for details on .example domain: https://datatracker.ietf.org/doc/html/rfc6761
This commit is contained in:
@@ -68,13 +68,13 @@ services:
|
||||
expose:
|
||||
- "8000"
|
||||
environment:
|
||||
- VIRTUAL_HOST=whoami.local
|
||||
- VIRTUAL_HOST=whoami.example
|
||||
- VIRTUAL_PORT=8000
|
||||
```
|
||||
|
||||
```console
|
||||
docker-compose up
|
||||
curl -H "Host: whoami.local" localhost
|
||||
curl -H "Host: whoami.example" localhost
|
||||
```
|
||||
|
||||
Example output:
|
||||
@@ -257,7 +257,7 @@ You can demo this pattern with docker-compose:
|
||||
|
||||
```console
|
||||
docker-compose --file docker-compose-separate-containers.yml up
|
||||
curl -H "Host: whoami.local" localhost
|
||||
curl -H "Host: whoami.example" localhost
|
||||
```
|
||||
|
||||
Example output:
|
||||
|
Reference in New Issue
Block a user