dc01: serve the site on http://norbourg.lab too
The domain name must keep resolving to the DC for AD, so redirect at the HTTP layer: a netsh portproxy on the DC forwards port 80 to FS01, and a firewall rule opens it. Both URLs now serve the archived site. doctor checks the short URL and warns (not fails) when the forward is absent.
This commit is contained in:
@@ -74,6 +74,13 @@ cmd_doctor() {
|
||||
_d_fail "site not answering (${code:-timeout}) — ./lab.sh web --sync"
|
||||
fi
|
||||
|
||||
code=$(curl -s -o /dev/null -w '%{http_code}' --max-time 5 "http://10.10.10.10/" 2>/dev/null || true)
|
||||
if [[ $code == 200 ]]; then
|
||||
_d_ok "site answers on the domain name (http://norbourg.lab)"
|
||||
else
|
||||
_d_warn "http://norbourg.lab does not answer (${code:-timeout}) — re-run provision --role dc01"
|
||||
fi
|
||||
|
||||
code=$(curl -s -o /dev/null -w '%{http_code}' --max-time 5 "http://10.10.10.20/public/IT-inventaire.txt" 2>/dev/null || true)
|
||||
if [[ $code == 200 ]]; then
|
||||
_d_ok "entry point reachable: /public/IT-inventaire.txt"
|
||||
|
||||
Reference in New Issue
Block a user