http-server is a simple, zero-configuration command-line static HTTP server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development and learning. You will be prompted with a few questions after entering the command. Use 127.0.0.1 as value for Common name if you want to be able to install the certificate in your OS's root certificate store or browser so that it is trusted. If you wish to use a passphrase with your private key you can include one in the openssl command via the -passout parameter (using password of foobar)

Features

  • Using npx you can run the script without installing it first:
  • Globally via Homebrew
  • Install as a dependency in your npm package
  • [path] defaults to ./public if the folder exists, and ./ otherwise
  • Caching is on by default
  • First, you need to make sure that openssl is installed correctly

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow http-server

http-server Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of http-server!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Command Line Tools

Registered

2023-03-15