Files
bootstrap-scripts/webserver-ip.sh
2025-08-15 18:48:41 +00:00

12 lines
228 B
Bash

cat <<EOF > index.html
<html>
<head><title>Hello World</title></head>
<body>
<h1>Hello from $(hostname)</h1>
<p>IP address: $(hostname -I | awk '{print $1}')</p>
</body>
</html>
EOF
sudo python3 -m http.server 80