Althttpd

Check-in [d601941368]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a hyperlink in the documentation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d6019413681a7acd209b97b1d0cdd83ed51dbdf273f42bd572d5559e23e6918a
User & Date: drh 2020-12-01 14:06:03
Context
2020-12-09
13:32
Add a simple Makefile. ... (check-in: 71ffd2e29d user: drh tags: trunk)
2020-12-01
14:06
Fix a hyperlink in the documentation. ... (check-in: d601941368 user: drh tags: trunk)
14:02
Initial code copied from the SQLite documentation ... (check-in: 911a3693c6 user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to althttpd.md.

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


Source Code
-----------

The complete source code for althttpd is contained within a single
C-code file with no dependences outside of the standard C library.
The source code file is named "[althttpd.c](/file/misc/althttpd.c)".
To build and install althttpd, run the following command:

>
     gcc -Os -o /usr/bin/althttpd althttpd.c

The althttpd source code is heavily commented and accessible.
It should be relatively easy to customize for specialized needs.







|







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


Source Code
-----------

The complete source code for althttpd is contained within a single
C-code file with no dependences outside of the standard C library.
The source code file is named "[althttpd.c](/file/althttpd.c)".
To build and install althttpd, run the following command:

>
     gcc -Os -o /usr/bin/althttpd althttpd.c

The althttpd source code is heavily commented and accessible.
It should be relatively easy to customize for specialized needs.
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195

On the sqlite.org website, the relevant lines of the
/etc/stunnel/stunnel.conf file are:

>
    cert = /etc/letsencrypt/live/sqlite.org/fullchain.pem
    key = /etc/letsencrypt/live/sqlite.org/privkey.pem
    [https]
    accept       = :::443
    TIMEOUTclose = 0
    exec         = /usr/bin/althttpd
    execargs     = /usr/bin/althttpd -logfile /logs/http.log -root /home/www -user www-data -https 1

This setup is very similar to the xinetd setup.  One key difference is
the "-https 1" option is used to tell althttpd that the connection is







|







181
182
183
184
185
186
187
188
189
190
191
192
193
194
195

On the sqlite.org website, the relevant lines of the
/etc/stunnel/stunnel.conf file are:

>
    cert = /etc/letsencrypt/live/sqlite.org/fullchain.pem
    key = /etc/letsencrypt/live/sqlite.org/privkey.pem
    \[https\]
    accept       = :::443
    TIMEOUTclose = 0
    exec         = /usr/bin/althttpd
    execargs     = /usr/bin/althttpd -logfile /logs/http.log -root /home/www -user www-data -https 1

This setup is very similar to the xinetd setup.  One key difference is
the "-https 1" option is used to tell althttpd that the connection is