Commit Graph

991 Commits (b333dd7efa6f4b21a9f1a3310b71830a4c516951)

Author SHA1 Message Date
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
2007-08-13 11:15:22 +00:00
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
2007-08-13 11:09:11 +00:00
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
2007-08-12 21:06:07 +00:00
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
2007-08-12 21:04:14 +00:00
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
2007-08-12 19:24:33 +00:00
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
2007-08-12 17:52:03 +00:00
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
2007-07-17 18:02:33 +00:00
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
2007-07-03 18:47:00 +00:00
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
2007-07-03 17:16:21 +00:00
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
2007-07-02 15:07:27 +00:00
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
2007-06-15 16:22:30 +00:00
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
2007-06-15 15:51:16 +00:00
Jan Kneschke d12d86d777 if we open more connections than we define with ulimit we might run
into a assert() in fdevent.c, try to limit the number of opened
connections before hand


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1873 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 15:30:34 +00:00
Jan Kneschke 768a0d0eab fixed type-cast for NULL in execl() (fixes #1235), fix provided by Frank
DENIS


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1872 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 15:04:56 +00:00
Jan Kneschke 022760f07d check the URL twice, before and after path-info handling. (fixes #1230)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1871 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 14:46:17 +00:00
Jan Kneschke 8b06b122b1 fixed by 1232, not 1209
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1870 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 14:15:37 +00:00
Jan Kneschke 9e4e4f7e1a fixed remote crash on duplicate header keys with line-wrapping (fixes #1230)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1869 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 14:08:32 +00:00
Marcus Rückert 991ebdf36f - add the orig_uri to the uri column in mod_status.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1864 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-05-25 14:23:46 +00:00
Marcus Rückert 6e332dd7bb - do not use xattr for content-type handling unconditionally
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1863 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-05-25 12:56:46 +00:00
Marcus Rückert 450c7de76e - restore the old return code with configured 404 handlers
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1852 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-05-09 15:05:17 +00:00
Marcus Rückert 1f8bceba8f - added query string to the uri column
- make the table cell content nowrap


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1846 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-05-08 16:29:34 +00:00
Elan Ruusamäe 733e565a50 - spelling fixes by Ryan Schmidt (patch from mailinglist)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1821 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-05-03 22:08:59 +00:00
Jan Kneschke 66496a27d9 fixed for non c99 compilers
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1787 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-17 22:27:37 +00:00
Elan Ruusamäe 374741e21c - revert. already there
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1778 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-17 05:58:15 +00:00
Elan Ruusamäe 0f8836c082 - CVE references
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1777 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-17 05:56:22 +00:00
Jan Kneschke 2fcc885f3a fixed duplicate headers as reported in the blog
- this is a partial revert of [1723]


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1767 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-13 20:47:40 +00:00
Marcus Rückert 5b22a9e910 - prepare 1.4.15
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1766 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-13 20:41:14 +00:00
Marcus Rückert ac959d3374 - updated NEWS file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1764 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-13 15:24:09 +00:00
Marcus Rückert 64877138f6 - added "kill-signal" as setting for fastcgi blocks. applications
linking libfcgi should be killed with SIGUSR1. The default value will
  remain SIGTERM though. If you want to change it add:
  '"kill-signal" => 10,' in your fastcgi block.



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1745 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 17:08:11 +00:00
Jan Kneschke aab9e92a63 * fixed compilation in network_writev.c on MacOS X 10.3.9 (fixes #903)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1744 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 16:15:21 +00:00
Jan Kneschke bdc811e2ec fixed compilation on c89 compilers
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1743 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 15:04:46 +00:00
Marcus Rückert 63344d9c7e - updated NEWS file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1742 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 13:32:24 +00:00
Marcus Rückert 275af90577 - set AUTH_TYPE environment variable for fastcgi requests (#889)
patch by tkruthoff


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1741 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 13:04:14 +00:00
Jan Kneschke dadc835cd4 forgot the comment on #1076
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1740 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 11:44:03 +00:00
Jan Kneschke 599bc83699 handle the mmap() error of the file-size is 0 (fixes #1076)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1739 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 11:40:34 +00:00
Jan Kneschke fb816f768b oops, missed one renamed variable if IPv6 is not available
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1738 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 09:26:20 +00:00
Marcus Rückert e1ac86419d - added missing news entry
- bumped version number

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1737 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 08:50:39 +00:00
Jan Kneschke 7f5aabdaaf * fixed possible crash in debug-message in mod_extforward
* fixed compilation of mod_extforward on glibc < 2.3.4



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1736 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 08:47:30 +00:00
Jan Kneschke aa37da4745 - fixed crash on url.redirect and url.rewrite if %0 is used in a
global context (fixes #800)



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1735 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-10 07:52:58 +00:00
Jan Kneschke dfa9f48b0f ECONNABORTED is not known on cygwin (fixes #863)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1734 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 20:31:03 +00:00
Jan Kneschke fff10e1d1a reduced default PATH_MAX to 255 (fixes #826)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1733 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 20:27:19 +00:00
Jan Kneschke 8fca20187e fixed conditional dir-listing.exclude (fixes #930)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1732 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 20:22:41 +00:00
Jan Kneschke 642247c353 - fixed various crashes at startup on broken accesslog.format strings
(fixes #1000)
- fixed handling of %% in accesslog.format



git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1731 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 19:58:57 +00:00
Jan Kneschke 40e19e481c added note about #1064
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1730 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 19:20:29 +00:00
Jan Kneschke 3c5c8ef54d fixed accesslog.use-syslog in a conditional and the caching of the
accesslog for files (fixes #1064)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1729 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 19:20:00 +00:00
Jan Kneschke 7d4086647a added comment on #1098
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1728 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:57:04 +00:00
Jan Kneschke 76e55e958c strip trailing white-spaces in HTTP-request headers
before we parse them (fixes #1098)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1727 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:55:21 +00:00
Jan Kneschke 54fa094d94 updated NEWS for the latest two fixes
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1726 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:41:42 +00:00
Jan Kneschke 7a30b1f4c5 don't allow caching of file without a content-type
- this solves the early install problems where the user hasn't setup
  fastcgi yet and sends the php-source code out and the browser caches
  the file and it's content


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1725 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:39:29 +00:00
Marcus Rückert 3c40b52929 - send SIGUSR1 to fastcgi apps before SIGTERM
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1724 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:27:59 +00:00