Jump to content

The Althttpd Webserver, (from sqlite.org)


horst
 Share

Recommended Posts

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.

  • Like 6
Link to comment
Share on other sites

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 ?

  • Like 1
  • Sad 1
Link to comment
Share on other sites

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?

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...