Skip to content

Instantly share code, notes, and snippets.

View saravankumarpa's full-sized avatar
💭
I may be slow to respond.

Saravan PA saravankumarpa

💭
I may be slow to respond.
View GitHub Profile
@saravankumarpa
saravankumarpa / _webserver.md
Created July 25, 2019 17:35 — forked from jgravois/_webserver.md
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@saravankumarpa
saravankumarpa / web-servers.md
Created July 7, 2019 17:18 — 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