Update webserver-ip.sh
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user