Install latest/stable of uhttpd
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
The only thing uhttpd is good for, is serving static content. It has no fancy bells, or whistles, like virtual host, or CGI support. All it does is host static files out of a directory for you.
If you are looking for the [uhttpd][1] that ships with OpenWRT, you are in the wrong place.
[1]: https://wiki.openwrt.org/doc/howto/http.uhttpd
Snap-specific Information
Customize the listening port(Default: 80):
sudo snap set uhttpd listening-port=8080
Customize the serving directory(Default: /var/snap/uhttpd/common) (EXPERIMENTAL, likely won't work):
sudo snap set uhttpd document-root-dir=/media/USB
Toggle output of access logging(Default: false):
sudo snap set uhttpd enable-access-log=true
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
You are about to open
Do you wish to proceed?
Generate an embeddable card to be shared on external websites.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.