Skip to content

Instantly share code, notes, and snippets.

@ncolyer
ncolyer / web-servers.md
Created April 19, 2016 14:06 — 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
@ncolyer
ncolyer / nginx.conf
Last active May 11, 2024 15:25 — forked from plentz/nginx.conf
NGINX Hardened
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048