Skip to content

Commit 2e343f1

Browse files
author
Kate Osborn
committed
Add pub.example.com
1 parent ad8bfd7 commit 2e343f1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/guides/routing-traffic-to-your-app.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,26 @@ Server address: 10.12.0.19:8080
230230
Server name: coffee-7dd75bc79b-dett3
231231
```
232232

233+
Requests to hostnames other than `cafe.example.com` should _not_ be routed to the coffee application, since the `cafe`
234+
application only matches requests with the `cafe.example.com` hostname. To verify this, send a request to the hostname
235+
`pub.example.com`:
236+
237+
```shell
238+
curl --resolve pub.example.com:$GW_PORT:$GW_IP http://pub.example.com:$GW_PORT/
239+
```
240+
241+
You should receive a 404 Not Found error:
242+
243+
```text
244+
<html>
245+
<head><title>404 Not Found</title></head>
246+
<body>
247+
<center><h1>404 Not Found</h1></center>
248+
<hr><center>nginx/1.25.2</center>
249+
</body>
250+
</html>
251+
```
252+
233253
## Troubleshooting
234254

235255
If you have any issues while testing the configuration, try the following to debug your configuration and setup:

0 commit comments

Comments
 (0)