horst Posted June 14, 2021 Share Posted June 14, 2021 This peace of software is impressive to me. Just want to share: Althttpd is a simple webserver that has run the https://sqlite.org/ website since 2004. Althttpd strives for simplicity, security, and low resource usage. As of 2018, the althttpd instance for sqlite.org answers about 500,000 HTTP requests per day (about 5 or 6 per second) delivering about 50GB of content per day (about 4.6 megabits/second) on a $40/month Linode. The load average on this machine normally stays around 0.1 or 0.2. About 19% of the HTTP requests are CGI to various Fossil source-code repositories. ... https://sqlite.org/althttpd/doc/trunk/althttpd.md The complete source code for althttpd is contained within a single C-code file with no dependences outside of the standard C library. 6 Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 14, 2021 Share Posted June 14, 2021 17 minutes ago, horst said: The complete source code for althttpd is contained within a single C-code file with no dependences outside of the standard C library. The suckless-philosophy... ❤️ 3 Link to comment Share on other sites More sharing options...
szabesz Posted June 14, 2021 Share Posted June 14, 2021 1 hour ago, horst said: The complete source code for althttpd is contained within a single C-code file with no dependences outside of the standard C library. I wish Apple's development practices were in line with such a feat, but sadly quite the contrary is happening these days: https://eclecticlight.co/2021/06/14/are-macos-updates-easier-than-ever/ Form Bug Sur and up, they can't even provide a Safari quick fix with a relatively small installer, but a big system updater of few gigs! https://eclecticlight.co/2021/05/03/apple-has-released-big-sur-11-3-1-update/ "Although it apparently addresses just these two vulnerabilities, it’s still 3.3 GB for an M1 Mac and 2.4 GB for an Intel model." Yikes ? 1 1 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted June 15, 2021 Share Posted June 15, 2021 15 hours ago, horst said: This peace of software is impressive to me. Just want to share: Althttpd is a simple webserver that has run the https://sqlite.org/ website since 2004. Althttpd strives for simplicity, security, and low resource usage. As of 2018, the althttpd instance for sqlite.org answers about 500,000 HTTP requests per day (about 5 or 6 per second) delivering about 50GB of content per day (about 4.6 megabits/second) on a $40/month Linode. The load average on this machine normally stays around 0.1 or 0.2. About 19% of the HTTP requests are CGI to various Fossil source-code repositories. ... https://sqlite.org/althttpd/doc/trunk/althttpd.md The complete source code for althttpd is contained within a single C-code file with no dependences outside of the standard C library. Is it .htaccess compatible? In other words, can we run PW on top of it out of the box? 1 Link to comment Share on other sites More sharing options...
horst Posted June 15, 2021 Author Share Posted June 15, 2021 29 minutes ago, Ivan Gretsky said: Is it .htaccess compatible? In other words, can we run PW on top of it out of the box? As far as I have understood from fast reading through some docs: No. But I'm not sure yet and this needs more investigation. My interest is in regard of bringing small services online with small computers like arduinos, raspi zero, etc. 1 Link to comment Share on other sites More sharing options...
netcarver Posted June 15, 2021 Share Posted June 15, 2021 @horst have you looked at Caddy? 1 Link to comment Share on other sites More sharing options...
netcarver Posted June 15, 2021 Share Posted June 15, 2021 5 hours ago, horst said: My interest is in regard of bringing small services online with small computers like arduinos, raspi zero Ok, are you looking for a webserver on an arduino? Did you find one? Link to comment Share on other sites More sharing options...
horst Posted June 15, 2021 Author Share Posted June 15, 2021 35 minutes ago, netcarver said: Ok, are you looking for a webserver on an arduino? Did you find one? I have some plans with raspi zero(s) as this already have WLAN and are small and consumes low power etc. I haven't much investigated now. It's more my son who has had some experiences in this field. I want to have an interface where I can send to from mobiles and desktops in our local LAN / WLAN. ATM I have no time to start with this, but collecting some info on the way is always a good idea. Do you know something that you can recommend? Link to comment Share on other sites More sharing options...
netcarver Posted June 15, 2021 Share Posted June 15, 2021 Not for an arduino, hence my question. I suspect it's too limited (at least an UNO) to do a full HTTP 1.1/2 implementation. A Raspi Zero on the other hand, should be fine. 1 Link to comment Share on other sites More sharing options...
Recommended Posts