Forrest logo
back to context overview

http-server

List of commands for http-server:

  • http-server:tldr:2ebc3 http-server: Start an HTTP server with logging disabled.
    $ http-server --silent
    try on your machine
    explain this command
  • http-server:tldr:3a0c9 http-server: Start an HTTPS server on the default port using the specified certificate.
    $ http-server --ssl --cert ${path-to-cert-pem} --key ${path-to-key-pem}
    try on your machine
    explain this command
  • http-server:tldr:586d4 http-server: Start an HTTP server using basic authentication.
    $ http-server --username ${username} --password ${password}
    try on your machine
    explain this command
  • http-server:tldr:66f1f http-server: Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses.
    $ http-server --cors
    try on your machine
    explain this command
  • http-server:tldr:702b3 http-server: Start an HTTP server and include the client's IP address in the output logging.
    $ http-server --log-ip
    try on your machine
    explain this command
  • http-server:tldr:87995 http-server: Start an HTTP server on a specific port to serve a specific directory.
    $ http-server ${path-to-directory} --port ${port}
    try on your machine
    explain this command
  • http-server:tldr:a0587 http-server: Start an HTTP server listening on the default port to serve the current directory.
    $ http-server
    try on your machine
    explain this command
  • http-server:tldr:b5dc7 http-server: Start an HTTP server with directory listings disabled.
    $ http-server -d ${false}
    try on your machine
    explain this command
back to context overview