Skip to content

Instantly share code, notes, and snippets.

View sigmike's full-sized avatar

Michaël Witrant sigmike

  • Ouvrages
  • France
View GitHub Profile
@asterite3
asterite3 / nginx.sh
Last active October 12, 2023 20:39
Serve current directory with nginx. As a regular (non-root) user (a replacement for python -m SimpleHTTPServer)
#!/bin/bash
# Usage:
# ./nginx.sh
# ./nginx.sh 8888
# ./nginx.sh 0.0.0.0 8080
set -e
HOST="127.0.0.1"