Commit Graph

979 Commits (1e1a8e5907b64e6d0186ad82a647328e29b71511)
 

Author SHA1 Message Date
Jan Kneschke 1e1a8e5907 use HAVE_SYS_PRCTL_H as HAVE_PRCTL is not checked for
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1958 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke ef19bacae8 added sending UID and PID for SIGTERM and SIGINT to the logs
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1957 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 30748f202c fixed timestamps for 32bit time_t which wraps at 2038
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1956 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 470d32b803 - added AM_PROG_CC_C_O as suggested by autotools
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1955 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 6719b15c7b - added missing Makefile.am entries
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1954 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 51826fc05c renamed ltostr() to LI_ltostr() to fix compile on HP/UX (fixes #465)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1951 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 41e836b410 fixed extracting status code from NPH scripts (fixes #1125)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1948 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke f67cdb67df fixed handling of duplicate If-Modified-Since to return 304
- don't append the second string to the first, but free it instead


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1947 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 5bc539b63e don't send a Content-Length for 1xx, 204 and 304 (fixes #1002)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1946 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke c4e3150283 fixed possible overflow in unix-socket path checks on BSD (#713)
- use sizeof(sun_path) instead of UNIX_PATH_MAX which might not be
  defined


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1944 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke f978d992df use public API instead of patching the cond-cache ourself
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1943 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 3940c60e68 fixed aggressive caching of conditionals (#41)
$HTTP["url"] =~ "" { cgi.assign = ... } fails if there is a module
loaded which is called before uri_clean is set (mod_exforward,
mod_rewrite, ...) 

- merged [1792], [1798], [1807], [1810], [1811] from trunk


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1942 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 7d2665843f fixed counter overrun in ?auto in mod_status (#909)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1941 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke e745fd6a12 added more debug output if FAM fails to monitor a dir (for #824)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1940 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 463e989458 removed early checks if the userfiles exist (fixes #1188)
- it is enough if the files exist when we really need them


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1938 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke dc4879473f removed debug msg
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1937 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 8392673b7e oops, ifd is gone
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1935 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 0177a96f5d fixed endless loop on shrinked files with sendfile() on BSD
- merged the shrinked file handling from linux-sendfile


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1933 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 474d5cea20 config-options are always "unsigned short"
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1932 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 9bc4c2a025 added testcases for #1286 and #1287
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1929 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 8f8e23f636 fixed invalid chars in header values (fixes #1286)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1928 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 5f518191bd fixed wrong result of buffer_caseless_compare("a", "ab") (fixes #1287)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1927 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 1920bd2739 fixed invalid "304 Not Modified" on broken timestamps
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1926 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke f0333c8c0d fixed crash on mixed \r\n and \n sequences
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1925 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 7eb8981e44 fixed duplicate code which handles the "disable keep-alive" for dynamic
content (fixes #1166)



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1924 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 3bc2da57d3 fixed number of skipped tests
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1923 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Elan Ruusamäe 4ac0e2dd1b - update NEWS
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1922 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Elan Ruusamäe 6eccc7abd6 - set mysql reconnect to on. resolves #1240
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1919 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke e8abdbf94e don't compress too small files (fixes #1241)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1918 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke bbd42c4e03 added dir-listing.set-footer = <string> to set a footer under the
dirlisting (fixes #1277)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1911 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 41271d5cf6 make sure that hash-function always uses a 32bit int (fixes #1279)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1908 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 777c383e58 - cleanup of the default config which includes a fix for (#1242)
- make paths more LSB alike
  - added default mime type
  - use example.org
  - use new name of the php fastcgi binary


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1907 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert ceef761f69 - bump version number
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1906 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert baec632cb7 - finally! the fix for 948.
only run into the 404 handler if we are in direct connection mode.
  that way we cant run into the 404 handler if a fastcgi app returned a
  404.

  This is a small backwards incompatible change as now the *cgi app has
  to generate the content for the 404 itself instead of falling back
  into the 404-handler.

  There is still a problem with subrequest which go back to the same
  module (fastcgi app triggers subrequest which hits the fastcgi module
  again) but that would require bigger changes to the plugin api. ATM
  each plugin deinitialize its data after it handled the request. So the
  module isnt initialized for the connection anymore and the subrequest
  directly jumps out of the handler.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1904 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert bafcebe06d - check the content for the send404 case too
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1903 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 05d9e7dd52 - remove the code again. this reopens #948
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1902 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 2573648c4b - added testcase for #948
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1901 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert dac6d449dd - backported fix from trunk
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1900 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 5504501699 - fix the frigging 404-handler bugs:
- dont restore the http status code unconditionally (1270)
  - mod_staticfile should set the http status properly. otherwise we run into
    the 404 handling twice and it appends the default 404 page to the content.
  (this passed the testsuite)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1899 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 029d32039c - fixed 404 testsuite
- added optional fastcgi handler

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1898 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 984f5caf57 make the cgi executable
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1895 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 420abdb295 - added test cases for 404 handler
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1894 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 58ea3c14c5 - make the test more portable
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1892 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 01fab66c18 - added test for the location crash
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1887 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 8f9f532083 * fixed crash on 32bit archs when debug-msgs are printed in mod_scgi,
mod_fastcgi and mod_webdav (#1263)



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1882 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 5a583661e3 - only generate the etag_flags once and store them in the connections
object.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1881 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert 8feb331858 - we did not reset the etag buffer is the inode was not used for the
etag. we now reset the buffer explicitly and use buffer_append_* later
  on. This fixes the bug reported by glen in #1209.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1880 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Marcus Rückert abdd1f5b45 - do not check stale values on errno. EAGAIN is handled inside the
function already. (#1245)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1879 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 15e260c28b * fixed mem-leak in mod_auth (reported by Stefan Esser)
* fixed crash with md5-sess and cnonce not set in mod_auth (reported
  by Stefan Esser)
* fixed missing check for base64 encoded string in mod_auth and Basic
  auth (reported by Stefan Esser)
* fixed possible crash in Auth-Digest header parser on trailing WS in
  mod_auth (reported by Stefan Esser)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1875 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke b2a96c959a added static-file.etags, etag.use-inode, etag.use-mtime,
etag.use-size to customize the generation of ETags for 
static files. (fixes #1209) (patch by <Yusufg@gmail.com>)



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1874 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago