Update webserver-ip.sh

This commit is contained in:
2025-08-15 18:48:41 +00:00
parent d245e1c56c
commit 29ceb5ccf8

View File

@@ -0,0 +1,11 @@
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