Skip to content

Instantly share code, notes, and snippets.

@noahp
Created August 18, 2015 11:51
Show Gist options
  • Save noahp/40ca62d19e1cba7c97fb to your computer and use it in GitHub Desktop.
Save noahp/40ca62d19e1cba7c97fb to your computer and use it in GitHub Desktop.
# to generate a new password file-
civetweb64.exe -A .htpasswd localhost admin admin
# start the server with that password
civetweb64.exe -global_auth_file .htpasswd
# test in browser, or curl-
curl.exe --digest -u mydomain.com\admin:admin http://localhost:8080/somefile.file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment