---
name: "ostree-trivial-httpd"
section: "1"
platform: "linux"
package: "ostree"
version: "2022.7-2+deb12u1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/ostree-trivial-httpd"
---

# ostree-trivial-httpd(1)

Simple webserver

## NAME

ostree-trivial-httpd - Simple webserver

## SYNOPSIS

**ostree trivial-httpd** \[OPTIONS...\] \[DIR\]

## DESCRIPTION

This runs a simple webserver and keeps it running until killed. If DIR is not specified, it defaults to the current directory.

## OPTIONS

- **--daemonize**,**-d**

  Fork into background when ready.

- **--autoexit**

  Automatically exit when directory is deleted.

- **--port-file**,**-p**="PATH"

  Write port number to PATH (- for standard output).

- **--port**,**-P**

  Use the specified TCP port to listen on.

- **--force-range-requests**

  Force range requests by only serving half of files.

## EXAMPLE

**$ ostree trivial-httpd**
