Documentation Source Text

Check-in [d2ad0c8ca6]
Login

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

Overview
Comment:Mention the use of SCGI in the althttpd.md file.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | althttpd-scgi
Files: files | file ages | folders
SHA3-256: d2ad0c8ca6078a9e2b4356db2f06dee607edd21a2fae99574abc96c6448c1d11
User & Date: drh 2019-02-15 20:31:06.735
Context
2019-02-15
20:31
Add SCGI support to the althttpd.c web server. (check-in: 201d18b836 user: drh tags: trunk)
20:31
Mention the use of SCGI in the althttpd.md file. (Closed-Leaf check-in: d2ad0c8ca6 user: drh tags: althttpd-scgi)
20:27
Updates to comments. Use size_t instead of int where appropriate. (check-in: 5faf086850 user: drh tags: althttpd-scgi)
Changes
Unified Diff Ignore Whitespace Patch
Changes to misc/althttpd.md.
148
149
150
151
152
153
154
155



156
157
158
159
160
161
162
a real directory and the others are symbolic links.

On a minimal installation that only hosts a single website, it suffices
to have a single subdirectory named "default.website".

Within the *.website directory, the file to be served is selected by
the HTTP request URI.  Files that are marked as executable are run
as CGI.  Non-executable files are delivered as-is.




If the request URI specifies the name of a directory within *.website,
then althttpd appends "/index.html" and "/index.cgi", in that order,
looking for a match.

If a prefix of a URI matches the name of an executable file then that
file is run as CGI.  For as-is content, the request URI must exactly







|
>
>
>







148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
a real directory and the others are symbolic links.

On a minimal installation that only hosts a single website, it suffices
to have a single subdirectory named "default.website".

Within the *.website directory, the file to be served is selected by
the HTTP request URI.  Files that are marked as executable are run
as CGI.  Non-executable files with a name that ends with ".scgi"
and that have content of the form "SCGI hostname port" relay an SCGI
request to hostname:port. All other non-execcutable files are delivered
as-is.

If the request URI specifies the name of a directory within *.website,
then althttpd appends "/index.html" and "/index.cgi", in that order,
looking for a match.

If a prefix of a URI matches the name of an executable file then that
file is run as CGI.  For as-is content, the request URI must exactly