Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Updates to the althttpd.md documentation. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7dcc5545d1d46a0723ffd71484e7e59a |
User & Date: | drh 2019-04-27 18:42:02.684 |
Context
2019-04-27
| ||
21:01 | Start a change log for version 3.29.0. (check-in: 4e1bc9c5f0 user: drh tags: trunk) | |
18:42 | Updates to the althttpd.md documentation. (check-in: 7dcc5545d1 user: drh tags: trunk) | |
11:27 | Fix a typo in althttpd.c - restore the behavior of index.cgi. (check-in: 8cda91e897 user: drh tags: trunk) | |
Changes
Changes to misc/althttpd.md.
︙ | ︙ | |||
141 142 143 144 145 146 147 | all characters other than ASCII alphanumerics into "_". The result determines which subdirectory to use for content. If nothing matches, the "default.website" directory is used as a fallback. For example, if the Host parameter is "www.SQLite.org" then the name is translated into "www\_sqlite\_org.website" and that is the directory used to serve content. If the Host parameter is "fossil-scm.org" then | | | | | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | all characters other than ASCII alphanumerics into "_". The result determines which subdirectory to use for content. If nothing matches, the "default.website" directory is used as a fallback. For example, if the Host parameter is "www.SQLite.org" then the name is translated into "www\_sqlite\_org.website" and that is the directory used to serve content. If the Host parameter is "fossil-scm.org" then the "fossil\_scm\_org.website" directory is used. Oftentimes, two or more names refer to the same website. For example, fossil-scm.org, www.fossil-scm.org, fossil-scm.com, and www.fossil-scm.com are all the same website. In that case, typically only one of the directories is 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-executable files are delivered as-is. If the request URI specifies the name of a directory within *.website, then althttpd appends "/home", "/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 match the name of the file. For content delivered as-is, the MIME-type is deduced from the filename extension using a table that is compiled into althttpd. |
︙ | ︙ | |||
273 274 275 276 277 278 279 | stored in the REMOTE_USER environment variable so that it can be accessed by CGI scripts. NAME and LOGIN are usually the same, but can be different. * <b>anyone</b> If the "anyone" line is encountered, it means that any request is | | | 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | stored in the REMOTE_USER environment variable so that it can be accessed by CGI scripts. NAME and LOGIN are usually the same, but can be different. * <b>anyone</b> If the "anyone" line is encountered, it means that any request is allowed, even if there is no username and password provided. This line is useful in combination with "http-redirect" to cause all ordinary HTTP requests to redirect to HTTPS without requiring login credentials. Basic Authentication Examples ----------------------------- |
︙ | ︙ |