simplehttpserver Command Examples

A simple HTTP/S server that supports file upload, basic authentication, and YAML rules for custom responses. A Go alternative to Python's http.server. More information: https://github.com/projectdiscovery/simplehttpserver.

simplehttpserver -verbose

sudo simplehttpserver -basic-auth {{username}}:{{password}} -path {{/var/www/html}} -listen 0.0.0.0:80

sudo simplehttpserver -https -domain {{*.selfsigned.com}} -listen 0.0.0.0:443

simplehttpserver -upload -header '{{X-Powered-By: Go}}' -header '{{Server: SimpleHTTPServer}}'

simplehttpserver -rules {{rules.yaml}}