User's manual. Section 1.

WEB(1): serve web pages


SYNOPSYS

        usage: web [-l] [-p port] [-t port] [dir]
            -l: localhost and TLS only
            -p port: port used (8080 by default)
            -t port: TLS port (8083 by default)
        

DESCRIPTION

Web serves the given directory (or /zx/usr/web if none is given) to the web. The default port is 8080 unless flag -p tells otherwise.

EXAMPLE

Serve the files at /n/web to the web using port 80.

        ; web -p 80 /n/web
        

To keep the web safe despite using the development version of all Clive tools and packages, this command serves the underlying OS files and does not rely on ZX (yet).

SOURCE

  • /zx/sys/src/clive/cmd/web


User's manual. Section 1.