$ sudo python3 -m http.server -b 127.0.0.1 80
Serving HTTP on 127.0.0.1 port 80 (http://127.0.0.1:80/) ...
</pre>
====ncコマンドをブラウザとしてアクセス====
<pre>
$ echo -en "GET / HTTP/1.0\r\n\r\n" | nc 127.0.0.1 80
HTTP/1.0 200 OK
Server: SimpleHTTP/0.6 Python/3.8.10
Date: Wed, 13 Apr 2022 11:56:03 GMT
Content-type: text/html
Content-Length: 127
Last-Modified: Tue, 22 Mar 2022 15:07:11 GMT
<!doctype html>
<html>
<head>
<title>Hello, World</title>
</head>
<body>
<h1>Hello, World</h1>
</body>
</html>
</pre>