Skip to content

Instantly share code, notes, and snippets.

@antihec
antihec / web-servers.md
Created November 27, 2019 14:12 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
upstream backend {
server 10.0.0.1;
server 10.0.0.2;
# ...
server 10.0.0.254;
}
server {
listen 443; ssl on;
#...
location / {