Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blocks:audioguide:split_horizon_dns [2025-09-17 08:15] – created mattias | blocks:audioguide:split_horizon_dns [2025-09-17 08:28] (current) – [DNS Split-Horizon Setup for BYOD and loaner digital guides on mobile devices] mattias | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====DNS Split-Horizon Setup for BYOD and loaner | + | =====DNS Split-Horizon Setup for digital guides |
| | ||
Line 6: | Line 6: | ||
- | 1. Why This Setup Helps | + | ====Why This Setup Helps==== |
When visitors open your audioguide URL: | When visitors open your audioguide URL: | ||
- | If they are on the local WiFi, they should automatically reach the local audioguide server. | + | * If they are on the local WiFi, they should automatically reach the local audioguide server. |
+ | * If they are offsite, they should see a helpful fallback page explaining how to connect or providing external resources. | ||
+ | * This improves the BYOD experience by reducing errors, unnecessary redirects, and user confusion. | ||
- | If they are offsite, they should see a helpful fallback page explaining how to connect or providing external resources. | + | ====Internet-Facing Requirements==== |
- | This improves the BYOD experience by reducing errors, unnecessary redirects, and user confusion. | + | ===To handle requests from outside your LAN== |
- | + | ||
- | 2. Internet-Facing Requirements | + | |
- | + | ||
- | To handle requests from outside your LAN: | + | |
Domain Name: Register a public domain, e.g., myaudioguide.net. | Domain Name: Register a public domain, e.g., myaudioguide.net. | ||
- | DNS Configuration: | + | DNS Configuration: |
HTTPS Certificate: | HTTPS Certificate: | ||
Line 28: | Line 26: | ||
Fallback Webpage: This page will attempt to probe the local server: | Fallback Webpage: This page will attempt to probe the local server: | ||
- | If the probe succeeds, the visitor is redirected to the internal server. | + | * If the probe succeeds, the visitor is redirected to the internal server. |
- | + | | |
- | If not, the visitor remains on the fallback page. | + | |
Note: Ensure the fallback page is served over HTTPS to avoid browser mixed-content warnings. | Note: Ensure the fallback page is served over HTTPS to avoid browser mixed-content warnings. | ||
- | 3. Local LAN Requirements | + | ====Local LAN Requirements==== |
To make the audioguide work seamlessly on local WiFi: | To make the audioguide work seamlessly on local WiFi: | ||
- | DNS Configuration: | + | DNS Configuration: |
HTTPS Certificate: | HTTPS Certificate: | ||
Line 44: | Line 41: | ||
Reverse Proxy: Nginx is recommended to handle internal routing and serve certificates. | Reverse Proxy: Nginx is recommended to handle internal routing and serve certificates. | ||
- | Tip: Using Certbot with DNS challenges can simplify automatic certificate renewal for mixed public/ | + | Tip: Using [[blocks: |
+ | |||
+ | ====Internet fallback page==== | ||
+ | |||
+ | On the internet it is recommended to host a webpage that will give the visitor useful information in case the visitor never joined the local wifi. This page can contain instructions in how to join and other useful information. | ||
- | Example code for a fallback webpage: | + | A minimal |
+ | Example code: | ||
< | < | ||
< | < |