Documentation Source Text

File History
Login

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

History of misc/althttpd.c

2018-06-08
13:41
Fix the -auth redirect logic to avoid duplicating part of the URL. file: [a6af6b4610] check-in: [76396bf1df] user: drh branch: trunk, size: 78243
2018-06-07
18:29
In althttpd.c, add the "anyone" line to the -auth file syntax. This allows inserting an -auth file that reads "http-redirect \n anyone" and which will force HTTP connections to redirect to HTTPS. file: [e8bbbc9c03] check-in: [9005943d91] user: drh branch: trunk, size: 78293
2018-02-25
19:24
Be sure to ParseRfc822Date() has enough precision in its output. file: [5cb76b6391] check-in: [3fed9a6fc9] user: drh branch: trunk, size: 78080
17:29
Fix some missing error codes from the previous althttpd.c check-in. file: [a1daaeb745] check-in: [5f2e54c6c1] user: drh branch: trunk, size: 78072
17:25
Change the action codes in the althttpd.c log to be consistent numbers, rather than source code line numbers. Include text at the end of a file that will generate a cross-reference table in SQLite. file: [38a61de815] check-in: [8aafa56bb9] user: drh branch: trunk, size: 77986
01:29
Add support for Last-Modified and If-Modified-Since in althttpd.c. file: [db15364e7b] check-in: [130feb0aa0] user: drh branch: trunk, size: 75289
2018-02-16
14:31
Enhance althttpd.c so that with the -DLOG_HEADER option, it records the complete http request header in logfile-hdr if the "FullHeaderLog" string occurs anyplace in the request path. file: [b817bb368c] check-in: [b1ce1a2b56] user: drh branch: trunk, size: 72964
2018-02-14
18:59
Avoid extra / characters in the redirect to /index.html from / in althttpd.c. file: [d715b7a099] check-in: [4f48a846f6] user: drh branch: trunk, size: 72108
2018-02-13
22:16
Fix an issue with not-found processing in althttpd.c. file: [5a6c18cad8] check-in: [72c8b8c6ff] user: drh branch: trunk, size: 72060
2018-02-07
16:50
To althttpd.c: Add "signal.h" and a mimetype table entry for "svg" files. file: [1ce3087842] check-in: [2ad7f8fef4] user: drh branch: trunk, size: 72041
2018-02-05
00:38
Minor correction to the new path parser in althttpd.c. file: [73c3d70e61] check-in: [ec999fa7cd] user: drh branch: trunk, size: 71959
00:32
The SCRIPT_FILENAME cgi parameter in althttpd is now a full pathname. file: [158c9ec719] check-in: [f30335da5c] user: drh branch: trunk, size: 71957
2018-01-30
23:44
Remove an unused variable from althttpd.c. file: [374bc757b7] check-in: [94b9b95bee] user: drh branch: trunk, size: 71932
17:06
Improved redirect handling in althttpd.c file: [5ecbd86bb5] check-in: [c4dcea55cd] user: drh branch: trunk, size: 71947
2018-01-15
18:50
Make sure 304 responses are always followed by a blank line to signal the client that the response is complete. file: [0ac862b488] check-in: [b85fcc5367] user: drh branch: trunk, size: 73738
14:28
Add caching to static content delivery in althttpd.c. file: [0fbabc2e6b] check-in: [635a6553e2] user: drh branch: trunk, size: 73708
13:31
Update comments on althttpd.c. No changes to code. file: [ca79f65068] check-in: [3f569fa95d] user: drh branch: trunk, size: 72249
2018-01-12
15:24
More althttpd.c changes to remove ::ffff: prefixes from IP addresses. file: [d9dedbfb5b] check-in: [bb31c42ef2] user: drh branch: trunk, size: 71718
14:44
Fix althttpd so that it omits the prefix from REMOTE_ADDRs of the form "::ffff:1.2.3.4" file: [05da7180a0] check-in: [a2f73b0c80] user: drh branch: trunk, size: 71696
2017-07-15
15:30
Update althttpd.c to exclude HTTrack, which seems to be an abusive spider. file: [b58d6df2d8] check-in: [b47f5ff005] user: drh branch: trunk, size: 71571
2017-03-14
23:28
Tighten and formalize the hack in althttpd that allows .well-known path prefixes on URIs. file: [0d6bbfa92f] check-in: [adbefa195f] user: drh branch: trunk, size: 71573
02:17
Modify althttpd.c to allow web content in the ".well-known" directory. file: [8f9449ade0] check-in: [10a66e4535] user: drh branch: trunk, size: 71573
2016-08-31
10:07
Fix date formats in the Last-Modified header. file: [c3a749450a] check-in: [363a0d0503] user: drh branch: trunk, size: 71425
2016-08-17
12:01
In althttpd.c, increase the default maximum content size to 250MB. file: [f2fb2df974] check-in: [f65bebb25e] user: drh branch: trunk, size: 71426
2015-01-31
15:03
In althttpd.c: Supply a Content-length header in the reply if the CGI does not provide one itself. file: [34e07883bd] check-in: [9363196b1f] user: drh branch: trunk, size: 71338
2014-12-19
12:45
In althttpd.c: Fix a comment marking a MakeLogEntry() call to include the LOG: keyword so that it is correctly picked up for recording the location of MakeLogEntry() calls. file: [926b5bef4b] check-in: [c92bd8c857] user: drh branch: trunk, size: 70418
2014-12-18
21:37
Merge recent 3.8.7 documentation fixes into the trunk branch. file: [4074b494d4] check-in: [272e47f56d] user: drh branch: trunk, size: 70413
21:34
Pass the HTTP_ACCEPT_ENCODING parameter to CGI programs. file: [905a5a313c] check-in: [3985f4812e] user: drh branch: branch-3.8.7, size: 67056
2014-11-10
13:54
Process the -logfile argument of althttpd.c using strftime(). file: [977cc6088b] check-in: [1c89e1bfa7] user: drh branch: trunk, size: 70199
2014-10-24
19:41
Add an extra byte to the end of an allocated buffer, to make doubly-sure to avoid a buffer overrun. file: [a2e4fd7b6b] check-in: [81ebf06056] user: drh branch: trunk, size: 69808
2014-10-23
16:38
Make sure that "devids.net" does not appear in the referrer log. Change the name to "devids.net.smut". file: [520b541d48] check-in: [974a16487b] user: drh branch: trunk, size: 69806
15:04
Fix a missing "LOG:" in a comment of althttpd.c file: [a188428ea7] check-in: [d562f4165f] user: drh branch: trunk, size: 69777
14:51
Add comments to the althttpd.c source file that identify all possible "lineno" values for the 17th parameter of the log file. file: [bb03d4ac4c] check-in: [ccf1203477] user: drh branch: trunk, size: 69772
14:15
Althttpd enhancements: Add a 17th field to the log file that records the source-code line from which the log file message was generated. This is useful for studying the causes of request failures. Also, invoke Malfunction() on any unix API error. file: [1f8db29bba] check-in: [415faae9bf] user: drh branch: trunk, size: 67912
2014-10-06
03:07
In althttpd.c: Fix a bug such that HTTPS requests are correctly logged as such. If the "--https 1" command-line option is used, then try to read the remote IP address from the REMOTE_HOST environment variable, under the assumption that althttpd is being called from stunnel. file: [3088f16bba] check-in: [c34e8da80a] user: drh branch: trunk, size: 66842
00:35
Detect and disable a "bashdoor" attack against althttpd.c. file: [795181614d] check-in: [389e06d34a] user: drh branch: trunk, size: 66764
2014-10-05
23:01
Improved documentation comments on the althttpd.c server program. file: [59537dfd3c] check-in: [d217041b2b] user: drh branch: trunk, size: 66670
20:54
Update the HTTP server to prohibit malformed and possibly malicious HTTP_HOST parameters. file: [e5ccaf2934] check-in: [5bb4dfcc73] user: drh branch: trunk, size: 61906
2014-09-17
04:03
Add the "vsix" mimetype to the althttpd.c server. file: [23292cdc05] check-in: [881c3a3aed] user: drh branch: trunk, size: 60831
2014-08-13
18:53
Updates to the webserver source code. file: [8cdaf897d7] check-in: [1c4aeae543] user: drh branch: trunk, size: 60769
2014-05-29
15:46
Change the default maximum POST size in althttpd to 20MB. file: [348b063918] check-in: [35fcd6cd5b] user: drh branch: trunk, size: 60461
2014-04-26
00:30
Update althttpd.c client to log SIGPIPE and SIGSEGV in addition to SIGALRM. file: [9d2c34859e] check-in: [5a80e1c8e7] user: drh branch: version-3.8.4.3, size: 60712
2013-12-16
21:42
When the request URI for static content contains extra path elements, report the error as 404 instead of 301. file: [3036f7b961] check-in: [155df5701c] user: drh branch: trunk, size: 60460
21:30
In althttpd, keep track of wall-clock time in milliseconds, not seconds. And for the user and system times, be sure to subtract out the user and system times for prior requests on the same connection. file: [cb576b23cd] check-in: [333c090d36] user: drh branch: trunk, size: 61010
20:13
Add an extra column to the logfile output from althttpd. The 16th column gives the number of characters in the request URI that contribute to the script name. This is useful with substr() in doing queries against specific CGI scripts. file: [6dff04e663] check-in: [faec8e5df4] user: drh branch: trunk, size: 60634
17:01
Improvements to the althttpd logic that redirects to the base document when there are surplus pathname elements in the request URI. file: [de1e9871d5] check-in: [452b6e3c75] user: drh branch: trunk, size: 60540
14:39
When serving static content that has extra elements on the end of the URI, return a 301 to redirect to the base document, so that relative hyperlinks in the document will be correct. file: [125e4532e5] check-in: [1682f2225f] user: drh branch: trunk, size: 60266
2013-07-17
15:39
Omit the newline from the default root name in standalone mode in althttpd. file: [0c894b1d6b] check-in: [6df9c92bc9] user: drh branch: trunk, size: 59523
2013-07-16
22:15
Improvements to standalone mode in althttpd.c. file: [ea7b6ce924] check-in: [a970d449c6] user: drh branch: trunk, size: 59525
2013-07-15
11:17
The log file for althttpd is now RFC-4180 CSV. file: [bd28333a56] check-in: [52bfa21f48] user: drh branch: 3.7.17, size: 59371
2013-01-05
17:56
Fix typo in comment. file: [c028190e17] check-in: [85008dde3d] user: mistachkin branch: trunk, size: 58917
2012-11-10
14:43
althttpd.c changes: Send a 403 response to unauthorized agents. Add Ezoom to the list of unauthorized agents. Do not log timeouts if the first line of the HTTP request was never received. file: [e768b2d163] check-in: [d61bcab9f4] user: drh branch: trunk, size: 58915
12:38
Change the way that user-agent restrictions are handled in althttpd.c. file: [354cffdca2] check-in: [8d5d89e6db] user: drh branch: trunk, size: 58632
12:23
Disallow the "Download Master" user agent in althttpd.c. file: [bd2bab9ea5] check-in: [e6b47e0290] user: drh branch: trunk, size: 58712
2012-10-26
14:21
Update althttpd.c to use getrusage() for finding run-time information for the log. Always wait for children prior to reporting child runtimes. file: [bd8b06894f] check-in: [357e7b7813] user: drh branch: trunk, size: 58618
2012-10-23
13:29
Added "charset=utf-8" marks to the content type in althttpd.c. file: [7256d7aa7a] check-in: [de32cdc42a] user: drh branch: trunk, size: 58360
2012-07-09
17:55
Get althttpd to compile and run on linux by adding #include <errno.h&gt. file: [2126109e24] check-in: [ac91a2d606] user: drh branch: trunk, size: 58913
2012-07-07
10:45
Add "-family ipv6" and "-family ipv4" options to althttpd.c to force it to use one or the other internet protocol version. file: [ee992ae71b] check-in: [734d42b432] user: drh branch: trunk, size: 58959
05:47
In althttpd.c add process tracing, commented out. file: [172fb47386] check-in: [2a6b5e40c5] user: drh branch: trunk, size: 58205
2012-07-06
05:22
Fix a bug in checking for the existance of the "default.website" folder. file: [49e0871403] check-in: [67fc7ffb67] user: drh branch: trunk, size: 58050
2012-07-05
20:01
Add support for IPv6 to the CGI handler. file: [da08ee55bd] check-in: [46c838972f] user: drh branch: trunk, size: 58050
19:35
Add support for IPv6 to the althttpd.c standalone server. file: [c722d8fdeb] check-in: [74563a081e] user: drh branch: trunk, size: 57620
2012-06-19
15:00
Althttpd changes: Make Redirect() much faster by avoiding timeouts. When a document it not found, search the either path for a not-found.html file to display and redirect to that file. file: [b8fb1f13c3] check-in: [8ad926dff3] user: drh branch: trunk, size: 56775
14:08
In althttpd, if the requested file is not found, look for the "not-found.html" file in the same directory and use it instead. file: [9155825579] check-in: [e4391f7f58] user: drh branch: trunk, size: 56529
2012-06-17
23:53
Fix an issue with the chroot jail. At the ability to 404 certain Referer values. file: [d45593547e] check-in: [cf0aea0254] user: drh branch: trunk, size: 56277
2012-06-09
02:24
Fixes to the --port option of althttpd. file: [7c983c55dd] check-in: [7b4eed2b49] user: drh branch: trunk, size: 55743
01:22
Enhance althttpd with new options --nojail, --port N, and --debug. If the --port N flag is used, then run as a server. --nojail avoids setting the chroot jail. --debug disables the timeout alarms. file: [417e23a20e] check-in: [f23fa402b1] user: drh branch: trunk, size: 55765
2012-06-02
18:50
Bug fix in althttpd.c: Include the port number on the HTTP_HOST cgi environment variable. file: [08312aa490] check-in: [c22354d66a] user: drh branch: trunk, size: 52098
2012-05-31
08:10
Add the COMBINED_LOG_FORMAT compile-time option to althttpd.c. Also catch errors opening a /tmp file and report them. file: [c3361ea6de] check-in: [f5c16dc36c] user: drh branch: trunk, size: 52073
2011-05-20
23:21
Further tightening of the validity rules for valid HTTP requests in althttpd.c. file: [14c9965da1] check-in: [73bc374298] user: drh branch: trunk, size: 51444
2011-05-18
13:14
Add documentation for 8+3 filenames. file: [0b752d4a7a] check-in: [4e973ec4bf] user: drh branch: trunk, size: 51438
2011-05-11
19:01
Add documentation for URI filenames. Update capi3ref.in so that it is able to have [[label]] style anchors in the middle of a single documentation unit. file: [6c6fd6c688] check-in: [66c5bcbaf8] user: drh branch: trunk, size: 51408
2011-03-29
16:02
Fix a typo in an error message for althttpd.c. file: [0f78441e2d] check-in: [67ea9276f4] user: drh branch: trunk, size: 51397
2011-03-28
16:44
Add basic authentication capabilities to althttpd.c file: [c3e07eab8b] check-in: [458e5b55bf] user: drh branch: trunk, size: 51397
2010-03-08
00:49
Allow the colon character (ASCII 0x3a) as a valid character in the body of a URL. file: [d53e8146bf] check-in: [dba0a9dc4b] user: drh branch: trunk, size: 45608
2009-12-11
14:20
Comment out the line in althttpd that disallows the msnbot. We are going to give Bing a second chance.... file: [2e172514b0] check-in: [101a84e46c] user: drh branch: trunk, size: 45608
2009-10-07
12:56
In the webserver, any "%xx" in the inbound URL is converted into a single "_" character, regardless of the value of "xx". Formerly, "%xx" was converted into "_xx". This is to work around an issue on URIs inbound from stackoverflow.com. file: [84dfaafaba] check-in: [1ef729b05d] user: drh branch: trunk, size: 45595
2009-01-30
02:25
Previous fix to althttpd.c contained bugs in the mimetype finder. This version has actually been tested on the website. file: [84d487ac34] check-in: [9e171b8ba5] user: drh branch: trunk, size: 45501
01:55
Much larger mimetype table for the webserver. file: [85accec26a] check-in: [5666307201] user: drh branch: trunk, size: 45687
2008-11-21
11:25
Make the -https option to althttpd take a boolean argument. file: [1af08eae15] check-in: [e1b46a72c4] user: drh branch: trunk, size: 35017
11:04
Add the -https command-line option to althttpd file: [78d1c27060] check-in: [505a6a77ce] user: drh branch: trunk, size: 34986
2007-12-23
12:56
Get althttpd.c working on Mac OSX file: [07cf72e075] check-in: [b766f90b9f] user: drh branch: trunk, size: 34554
2007-12-21
22:13
Additional error diagnostics when the webserver fails. file: [7b8bebe0e5] check-in: [310ef51837] user: drh branch: trunk, size: 34549
2007-11-21
13:45
Fix a bug in cookie management in althttpd.c file: [abb99dccae] check-in: [0faf241992] user: drh branch: trunk, size: 33843
2007-11-15
00:50
Lots of little fixes. file: [96162c6440] check-in: [f45d2bc902] user: drh branch: trunk, size: 33828
2007-11-14
12:14
Add sources to the webserver. Also added favicon.ico and robots.txt. file: [6ae4819e90] check-in: [ce6f77b1ef] user: drh branch: trunk, size: 33789 Added