From 4f49b16079b27d7ce633619e4cddfdf2bffbc952 Mon Sep 17 00:00:00 2001 From: cashmere Date: Fri, 4 Sep 2026 09:05:24 +0200 Subject: initial commit --- www/server/any/althttpd.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 www/server/any/althttpd.md (limited to 'www/server/any/althttpd.md') diff --git a/www/server/any/althttpd.md b/www/server/any/althttpd.md new file mode 100644 index 0000000..7797103 --- /dev/null +++ b/www/server/any/althttpd.md @@ -0,0 +1,42 @@ +# Serving via althttpd + +[Althttpd][althttpd] +is a light-weight web server that has been used to implement the SQLite and +Fossil websites for well over a decade. Althttpd strives for simplicity, +security, ease of configuration, and low resource usage. + +To set up a Fossil server as CGI on a host running the althttpd web +server, follow these steps. +
    +
  1. Get the althttpd webserver running on the host. This is easily +done by following the [althttpd documentation][althttpd]. + +
  2. Create a CGI script for your Fossil repository. The script will +be typically be two lines of code that look something like this: + +~~~ + #!/usr/bin/fossil + repository: /home/yourlogin/fossils/project.fossil +~~~ + +Modify the filenames to conform to your system, of course. The +CGI script accepts [other options][cgi] besides the +repository:" line. You can add in other options as you desire, +but the single "repository:" line is normally all that is needed +to get started. + +
  3. Make the CGI script executable. + +
  4. Verify that the fossil repository file and the directory that contains +the repository are both writable by whatever user the web server is +running and. +
+ +And you are done. Visit the URL that corresponds to the CGI script +you created to start using your Fossil server. + +*[Return to the top-level Fossil server article.](../)* + + +[althttpd]: https://sqlite.org/althttpd/ +[cgi]: ../../cgi.wiki -- cgit v1.3.1