![]() I picked stunnel because it seems to be the most mature solution and it's referenced in this busybox wiki page and in the althttpd README. In this case, one can run such a reverse proxy to listen on a public IP address and forward the requests to a local port or UNIX-domain socket. It accepts encrypted TLS connections and forwards them as unencrypted requests to a server. A more suckless approach than to implement TLS into it is to use a TLS reverse proxy (e.g. They are meant to be used with stunnel or something similar for getting TLS encryption (HTTPS): Most tiny servers don't offer HTTPS built-in. Otherwise you'll send your password unencrypted (though base64-encoded) over the internet. When you want to use basic authentication, you need HTTPS. ![]() I picked darkhttpd because I want to have directory listings and use basic authentication. (You need superuser rights for running a server on port 80 and also for using the chroot feature.) Sudo althttpd -root /srv/static/ -port 80 -user www Sudo darkhttpd /srv/static/ -port 80 -chroot -uid www -gid www ![]() Sudo busybox httpd -h /srv/static -p 80 -f And I have created a user www (group www) for serving the content. I have put my web content in /srv/static. How to serve static content via HTTP (Port 80)
0 Comments
Leave a Reply. |