File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,26 @@ Server address: 10.12.0.19:8080
230
230
Server name: coffee-7dd75bc79b-dett3
231
231
```
232
232
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
+
233
253
## Troubleshooting
234
254
235
255
If you have any issues while testing the configuration, try the following to debug your configuration and setup:
You can’t perform that action at this time.
0 commit comments