Don't forget bash.
#!/bin/bash
while :; do nc -l 80 < index.html; done #!/bin/bash
while :; do nc -l 80 < index.html; doneHTTP/0.9 web browser sends:
GET /
Netcat sends: <!doctype html>
...
Nowadays a browser will send `GET / HTTP/1.1` and then a bunch of headers, which a true HTTP/0.9 server may be able to filter out and ignore, but of course this script will just send the document and the browser will still assume it's a legacy server.