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
2007-08-17 23:35:26 +00:00
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
2007-08-17 23:19:17 +00:00
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
2007-08-17 22:37:47 +00:00
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
2007-08-17 22:35:19 +00:00
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
2007-08-17 22:23:28 +00:00
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
2007-08-17 22:18:18 +00:00
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
2007-08-17 22:17:00 +00:00
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
2007-08-17 21:49:13 +00:00
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
2007-08-17 21:47:24 +00:00
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
2007-08-17 21:46:36 +00:00
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
2007-08-17 21:04:20 +00:00
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
2007-08-17 15:37:45 +00:00
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
2007-08-17 06:37:17 +00:00
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
2007-08-15 12:12:13 +00:00
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
2007-08-15 11:16:53 +00:00
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
2007-08-15 09:49:15 +00:00
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
2007-08-14 13:25:04 +00:00
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
2007-08-13 15:44:15 +00:00
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
2007-08-13 11:26:06 +00:00
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
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
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
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
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
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
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
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
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
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
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
Jan Kneschke
a0436cea45
encode newlines in HTTP headers ( fixes #1106 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1723 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:12:43 +00:00
Jan Kneschke
a1a769ddb5
added possible for the caching of the invalid content-type
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1722 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 18:12:09 +00:00
Jan Kneschke
c3476ada45
fixed small mem-leak if auth failed
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1721 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 16:58:13 +00:00
Jan Kneschke
5db109e16d
cleanup whenever we have a data-struct on this connection
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1720 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-04-09 16:57:54 +00:00
Jan Kneschke
f1f11ba6ad
fixed crashed if gethostbyaddr() fails on redirect
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1718 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-03-26 08:21:39 +00:00
Marcus Rückert
10fbd9e24e
- properly handle 206 responses generated by *cgi scripts
...
closes 755
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1716 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-03-17 19:47:24 +00:00
Marcus Rückert
ba424e2293
- fix the previous commit
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1687 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-21 19:55:16 +00:00
Marcus Rückert
b3f333d32e
- add HTTPS=on to the environment of cgi scripts ( #861 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1684 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-21 19:30:20 +00:00
Marcus Rückert
892ebbe530
- handle 303 [ #1045 ]
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1678 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-20 17:25:12 +00:00
Marcus Rückert
f8d54c8574
- properly ifdef for dragonflybsd. this should be the last missing chunk
...
patch by Jörg Sonnenberger
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1676 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-20 17:08:32 +00:00
Elan Ruusamäe
40e8d326d1
- unify style
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1671 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-19 21:46:50 +00:00
Elan Ruusamäe
f68fd405f4
- add mod_extforward module from wiki
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1665 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-19 21:05:59 +00:00
Marcus Rückert
e61146a740
- applied patch from sh@linux2go.dk ( #1039 )
...
References to FAM stat cache engine should be conditional
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1664 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-19 13:55:07 +00:00
Marcus Rückert
acd992cbf1
- applied patch from colin.stephen@o2.com ( #1041 )
...
fixes http 500 errors with mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1663 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-19 13:52:23 +00:00
Elan Ruusamäe
72ac4ece2e
- prevent wrong pidfile unlinking on graceful restart (patch by Chris Webb)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1656 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-17 18:17:00 +00:00
Elan Ruusamäe
1c662e07ba
- ignore empty packets from STDERR stream. fixes #998
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1607 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-05 13:14:21 +00:00
Marcus Rückert
55a713a1a1
r1557@h2o: darix | 2007-01-14 10:55:33 +0100
...
- fix a crash for files with an mtime of 0
reported by cubiq on irc
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1519 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-01-14 09:58:14 +00:00
Marcus Rückert
d471bcc9ca
r1553@h2o: darix | 2007-01-14 10:37:14 +0100
...
- allow empty passwords with ldap.
patch by Jöerg Sonnenberger
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1516 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-01-14 09:40:02 +00:00
Robert Jakabosky
5d8855bdef
commit fix from Ticket #964
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1501 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-01-05 02:57:09 +00:00
Robert Jakabosky
db76b98e03
Added round-robin support to mod_fastcgi.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1500 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-01-03 09:46:32 +00:00
Marcus Rückert
4fe6745364
- Handle DragonFlyBSD the same way as Freebsd.
...
Patch by Jörg Sonnenberger
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1492 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-12-29 05:32:44 +00:00
Elan Ruusamäe
36544e2186
added now and weeks support to mod_expire. close #943
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1478 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-12-19 15:11:04 +00:00
Robert Jakabosky
4f1587c57e
If client connection aborts during parse of "\r\n\r\n", then lighttpd never cleans up the
...
connection and keeps trying to read from the died connection. lighttpd still responses
to other requests, it just eats up all the cpu trying to handle the died connection.
this commit fixes that problem
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1473 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-12-15 06:13:43 +00:00
Marcus Rückert
4a609547a0
r1435@h2o: darix | 2006-11-10 18:25:42 +0100
...
"www.example.com." is equivalent to "www.example.com".
The trailing dot just tells the resolver to script the searchlist.
If we want to match the hostname for conditionals/mod*vhost,
we need to strip it.
* src/request.c: (request_check_hostname) Decrement host_len to skip
the trailing dot.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1406 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-11-10 17:37:19 +00:00
Marcus Rückert
53ab644ead
- merged -r1090:1091 => add --with-webdav-locks
...
- open modules with 'RTLD_NOW|RTLD_GLOBAL'
this fixes the problems with luafilesystems and missing symbols
- added AC_SUBST(UUID_LIBS)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1387 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-09 13:50:29 +00:00
Jan Kneschke
a0aafd9a24
save the old errno of the sendfile() call in case that the attr_get()
...
fails in stat-cache-get-entry
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1386 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-08 18:24:14 +00:00
Jan Kneschke
d6bfa8aaa8
the patch attached to #119 was right. If we
...
have content on a HEAD request, take it as the
Content-Length and discard the content (as it is
a HEAD request)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1385 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-07 17:47:49 +00:00
Jan Kneschke
b4778f8e6d
fixed writev() on FreeBSD 4.x and older (FreeBSD-port: PR103758)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1383 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-07 17:27:29 +00:00
Jan Kneschke
7a220fceb4
don't force a Content-Length header in HEAD requests ( #119 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1382 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-07 17:17:54 +00:00
Jan Kneschke
636c890721
no one really liked this warning :(
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1381 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-07 07:46:46 +00:00
Jan Kneschke
e49da67a47
only set the etag if we have one
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1380 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-07 07:46:22 +00:00
Marcus Rückert
b6ee10916c
mkcol/mkdir in mod_webdav now honors the umask aswell.
...
fixes [#884 ]
* src/mod_webdav.c
added define WEBDAV_FILE_MODE
added define WEBDAV_DIR_MODE
and replaced all hardcoded values in open/mkdir calls with
the defines.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1379 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-07 03:09:39 +00:00
Jan Kneschke
41bcf415c4
added content-type to the .stat() and decoded the st_mode
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1378 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-06 11:21:00 +00:00
Jan Kneschke
bf0f7832c1
added lighty.stat() which uses the stat-cache to reduce the number of syscalls
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1377 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-06 08:27:50 +00:00
Jan Kneschke
0780de8bfa
added the original URI, before the rewrite, to the env.
...
the orig-uri is forwarded as REQUEST_URI to the *CGI backends
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1376 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-06 07:14:10 +00:00
Jan Kneschke
ba52eb0e41
disable chunked encoding header on a HEAD request
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1375 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-05 10:23:27 +00:00
Jan Kneschke
bb24041f92
provide a useful error-msg when sqlite3_open fails
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1373 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 21:25:29 +00:00
Jan Kneschke
1398cb2e3e
fixed some allocations in the ssl-part before lighty exits to make valgrind happy
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1372 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 13:31:49 +00:00
Marcus Rückert
8cd1471cb3
- white space cleanup part 2 this time 1.4 ;)
...
i hope it helps with merging stuff back to 1.5
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1371 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 13:26:23 +00:00
Jan Kneschke
3a152b3b76
added $apr1$ support for htpasswd ( fixes #870 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1369 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 07:46:12 +00:00
Jan Kneschke
68033b8e62
merged [270] ( fixes #871 )
...
- call initgroups() in spawn-fcgi.c
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1368 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 07:36:10 +00:00
Jan Kneschke
874173ce56
added summary-tag to all tables in dirlisting and status
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1367 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 07:27:59 +00:00
Jan Kneschke
55c90e4c60
remove fragments from the request-uri ( fixes #869 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1366 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 07:20:14 +00:00
Jan Kneschke
d766ee99ce
allocate a byte more, to match the ioctl() report
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1365 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 07:00:35 +00:00
Marcus Rückert
56de5af1cd
- properly find fastcgi.h in /usr/include/fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1364 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:22:47 +00:00
Marcus Rückert
b060b46dc9
- mark a few params as unused
...
- fix a few signed mismatch by casting to the correct type
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1363 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:21:42 +00:00
Marcus Rückert
acd628fe09
- remove unused variable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1362 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:20:32 +00:00
Marcus Rückert
7cefa9ce73
- cast ptrdiff_t to size_t to avoid a signed comparison warning
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1361 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:19:50 +00:00
Marcus Rückert
fe77777647
- dont use int for a enum type
...
- handle default case in connection type switch
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1360 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:18:06 +00:00
Marcus Rückert
3e7e2d528d
- marked parameter as unused
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1359 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:16:35 +00:00
Marcus Rückert
15fde9cf07
- mark a few parameters as unused
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1358 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:15:55 +00:00
Marcus Rückert
91776b2d10
- remove unused variable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1357 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 22:15:17 +00:00
Jan Kneschke
4581a73ab8
fixed off-by-one bug when the second CRLF after a HTTP-header is in a second read() call
...
- fixes #876
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1352 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-03 13:33:35 +00:00
Jan Kneschke
0ad43990ee
added a better comment about the current (incomplete) state of LOCK support
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1346 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-28 12:09:26 +00:00
Jan Kneschke
a59faafd7d
fixed the 501 code for a LOCK request
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1345 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-28 07:25:38 +00:00
Jan Kneschke
0014a87d02
added a check for uuid.h to the scons build
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1344 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-28 07:25:15 +00:00
Marcus Rückert
347f6479c2
- configure.in:
...
check for uuid/uuid.h
- mod_webdav.c:
change the conditional to use HAVE_UUID_UUID_h
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1343 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-27 23:55:04 +00:00
Jan Kneschke
15a488a945
use the right return-value for an error
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1339 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-23 12:11:30 +00:00
Jan Kneschke
634ec365f5
make the config-options arrays instead of strings
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1338 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-23 11:19:31 +00:00
Jan Kneschke
e332dce9bf
improved error-msgs if on type-mismatch
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1337 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-23 11:19:02 +00:00
Jan Kneschke
67079527f4
changed name of shadowed variable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1336 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-23 11:18:31 +00:00
Jan Kneschke
f56e3907fe
merged [1078]
...
- allow empty arrays
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1335 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-23 07:15:07 +00:00
Jan Kneschke
dd35c9101c
fixed connections falling back to non-ssl when keep-alive + ssl was used
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1334 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-23 07:04:02 +00:00
Jan Kneschke
9de3807438
handle follow-symlink in the stat-cache
...
- added the follow-symlink into the hash-key
- delete all versions if a file/dir is moved or deleted
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1332 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 14:53:14 +00:00
Jan Kneschke
6ae9b8f58e
removed buggy optimization
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1330 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 13:32:29 +00:00
Jan Kneschke
9ddae28ab5
removed duplicate lua-load calls which crash lua 5.0
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1329 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 13:31:55 +00:00
Jan Kneschke
a3542afd31
handle connection-close after after a broken header in keep-alive like
...
{{{
GET / HTTP/1.1
Host: foo
GET
}}}
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1328 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 12:51:14 +00:00
Marcus Rückert
b2239df913
- mod_webdav honors the umask now.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1327 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 08:48:52 +00:00
Marcus Rückert
a57bb8202e
- fix logging of the path when using stat_cache debugging.
...
- always run symlink checks as it breaks otherwise
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1326 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 08:47:30 +00:00
Jan Kneschke
e9cc9ed36c
fixed SSL_ERROR_WANT_READ handling
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1325 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 08:04:32 +00:00
Jan Kneschke
8517995f52
added append_buffer_weak() which take the buffer directly instead of copying it
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1324 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 08:03:40 +00:00
Jan Kneschke
85775e6a5e
removed debug info
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1323 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-21 08:03:15 +00:00
Jan Kneschke
f40d75f98d
fixed crash with invalid hostmask is used ( fixes #854 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1321 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-20 19:04:36 +00:00
Jan Kneschke
a34a3ae173
reverted [1312] as it led to seg-faults
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1319 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-20 14:40:28 +00:00
Jan Kneschke
dd0abe5aba
print 'lighttpd -p -f ...' to stdout instead of stderr
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1318 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-20 14:37:15 +00:00
Jan Kneschke
9c773d9f7d
fixed SSL + POST on Firefox
...
- moved the SSL-read code into a seperate function
- rewrote the "optimized" and ugly CRLF CRLF code
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1317 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-20 14:03:55 +00:00
Jan Kneschke
6309a54031
handle ENOTCONN nicly on FreeBSD writev()
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1316 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-18 18:05:35 +00:00
Jan Kneschke
2721197ff6
workaround a hanging ssl-connections in Opera 9.01 and 8.54 (and earlier) if chunked-encoding is used
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1315 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-18 16:41:43 +00:00
Jan Kneschke
e98ea9c0b0
trust the autoconf-checks again
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1313 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-16 11:30:11 +00:00
Jan Kneschke
2a3ac19883
rici pointed me the lua_cpcall() to call a lua-c-function in protected mode
...
instead of used lua_atpanic to handle errors myself
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1312 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-16 11:29:48 +00:00
Jan Kneschke
00a5770e2f
fixed "Software caused connection abort" messages on FreeBSD
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1311 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-16 11:28:28 +00:00
Jan Kneschke
404f81e63b
lua_State has to be put into the #ifdef too
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1309 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 15:32:18 +00:00
Jan Kneschke
4b8905d4b4
fix for lua not installed
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1308 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 14:56:41 +00:00
Jan Kneschke
49815a7798
fixed writev() for older glibc's
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1306 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 13:28:07 +00:00
Marcus Rückert
d9cb387859
- make the features output more portable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1305 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 13:23:07 +00:00
Jan Kneschke
08c093b940
fixed mod_cml + lua 5.1
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1304 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 12:52:53 +00:00
Jan Kneschke
6e1a97da6b
added missing header file
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1302 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 12:01:43 +00:00
Jan Kneschke
9076cbdf5c
if wait() gets interruped, don't increase the number of workers to start
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1301 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 12:01:29 +00:00
Jan Kneschke
e931d4f27f
fixed compile if lua is not enabled
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1300 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 11:49:57 +00:00
Jan Kneschke
63ec609a56
- added set() for .env[]
...
- added .RESTART_REQUEST
- fixed handling of .content = { { ... } } if offset is set, but no length
- added range checks for offset and length
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1299 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 10:00:46 +00:00
Jan Kneschke
c7b9858b03
added support for lighty.status[] in mod_magnet
...
- moved the status_counter_* functions from mod_fastcgi.c to status_counter.[ch]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1298 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-14 12:00:32 +00:00
Jan Kneschke
1b47e99a34
luaL_newstate() is from lauxlib.h, #include it
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1297 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-14 11:55:26 +00:00
Jan Kneschke
7b4097f7ee
oops, use SSL_CTX_* if you modify the ssl_ctx
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1296 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-14 11:55:01 +00:00
Jan Kneschke
b79f1a24c9
- moved all global vars to the lighty.* namespace
...
- added lighty.env[] to get read access to uri.path, physical.path and friends
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1295 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-13 13:13:27 +00:00
Jan Kneschke
51db8b5498
free hostname on shutdown ( fixes #844 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1294 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-13 10:12:31 +00:00
Jan Kneschke
925cb27a14
- add a try-catch around add-content
...
- make the content-array simpler
- make request[] a porxy to the con->request array in c
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1293 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-11 20:37:29 +00:00
Jan Kneschke
daeab348cd
added mod_magnet
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1292 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-10 22:01:43 +00:00
Jan Kneschke
1311a6137f
added comment on waitpid() + -HUP
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1291 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-10 22:01:26 +00:00
Marcus Rückert
05919041e1
- only run symlink checks if we should not follow them.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1290 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-10 14:11:08 +00:00
Jan Kneschke
dcb2689f4d
use sysconf() to get IOV_MAX ( fixes #842 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1289 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-09 13:21:21 +00:00
Marcus Rückert
27e3de6ca4
Remove unmaintained and not working pam code.
...
Most people would use pam auth with /etc/{passwd,shadow}.
This is a stupid idea anyway.
* src/server.c: Remove pam from the feature list (-V)
* src/http_auth.h, src/http_auth.c: Remove the pam code.
(merge of r1115:1116 from branches/lighttpd-merge-1.4.x/)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1288 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 14:21:17 +00:00
Marcus Rückert
0f190e1614
- dont debug the statcache by default!;)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1287 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 14:01:38 +00:00
Jan Kneschke
7d4d819599
merged [1055], [1056], [1068], [1172], [1176]
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1286 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 12:28:48 +00:00
Jan Kneschke
08994e478a
don't use strndup if possible
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1285 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 12:17:00 +00:00
Jan Kneschke
3b73da83a2
merged [1217]
...
fixed allow-http-11
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1282 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 11:05:41 +00:00
Marcus Rückert
657a024d53
- backport symlink patch in hard version to 1.4.11
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1281 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 11:00:02 +00:00
Jan Kneschke
a85ca5e0ef
merged [1051], [1052], [1053], [1054], [1057], [1060], [1061], [1062]
...
added ssl.use-sslv2 and ssl.cipher-list
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1279 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 10:19:29 +00:00
Jan Kneschke
47069040ba
merged [1082]
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1278 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 10:17:33 +00:00
Jan Kneschke
38b24d85d4
backported to the 1.4.11 interface
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1277 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-01 10:21:53 +00:00
Jan Kneschke
33983f89f1
merged -r1042:1194 for mod_webdav.c from the 1.5.0 tree
...
- added Content-Range support for PUT
- added experimental LOCK support
- call PREATE after the CREATE TABLE
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1276 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-01 10:17:28 +00:00
Jan Kneschke
71e66c88ec
fix cygwin-only path traversal
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1275 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-01 10:07:09 +00:00
Jan Kneschke
48ca389d89
- use a big SSL_read buffer which can read at least 16k + the pending bytes
...
- reuse the last read-buffer after a SSL_ERROR_WANT_READ
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1274 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-01 09:53:44 +00:00
Jan Kneschke
609a30e896
disable the ssl-write checks for a moving SSL-write-buffer
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1273 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-01 09:52:32 +00:00
Jan Kneschke
28f6aa9ba8
skip empty buffers
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1272 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-01 09:51:51 +00:00
Jan Kneschke
7ef30c4dfe
don't forget the waitpid() for locally spawned processes (patch by Cameron Ring)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1038 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-09 11:21:59 +00:00
Jan Kneschke
55bfb4737d
removed complex proc-load-balancing code and simplified it
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1037 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-09 11:15:30 +00:00
Jan Kneschke
a1eb4c307f
big cleanup of error-handling
...
- re-enabling locally disabled backends works again
- cleanup error-messages on config errors
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1031 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-08 23:58:18 +00:00
Jan Kneschke
4753fb5dd5
added mod_flv_streaming.c for streaming flash movies efficiently
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1030 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-07 12:26:10 +00:00
Jan Kneschke
bfc8289f82
added ability to specify which ip address spawn-fci listens on ( fixes #504 ), patch by agkr@pobox.com
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1029 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-07 12:18:46 +00:00
Jan Kneschke
66de89f0f8
432 is used by webdav for locked
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1027 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-06 00:47:29 +00:00
Jan Kneschke
fe8b467cc1
removed umask(0);, let the old umask stay in place ( fixes #547 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1026 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 17:12:46 +00:00
Jan Kneschke
0b8de4b3ec
allow leading zeros in HTTP/01.01 ( fixes #542 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1025 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 17:10:47 +00:00
Jan Kneschke
9d3c1b09de
fixed calculation of unix-socket path length if SUN_LEN is not defined ( fixes #553 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1022 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 15:16:11 +00:00
Jan Kneschke
a743ad8063
fixed handling of subdirs in ssi ( fixes #462 ), patch by robe
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1021 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 15:12:17 +00:00
Jan Kneschke
2882cdea8e
fixed end of life memleaks ( fixes #524 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1020 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 14:57:35 +00:00
Jan Kneschke
396d141efb
don't init a SERVER["socket"] if it is initialized already
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1019 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 14:53:57 +00:00
Jan Kneschke
85fc576437
strip ... and %20 from physical filenames only on windows
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1018 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 14:53:29 +00:00
Xuefer
81daf1bb5b
fixed #557 : %0 crashed with !~
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1016 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-03 09:37:06 +00:00
Jan Kneschke
c76b19673a
allow proxy to svn-apache do a commit
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1015 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-02 23:31:40 +00:00
Jan Kneschke
b268e163af
added the WebDAV, class 2 methods (darix)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1012 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-02 14:08:28 +00:00
Jan Kneschke
cc27752623
added FAM_FLAGS and SQL_CFLAGS to the right modules (darix)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1011 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-02 14:07:42 +00:00
Jan Kneschke
a47316ba93
fixed typo
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1010 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-01 21:20:24 +00:00
Jan Kneschke
0525ed2816
fixed calculation of socket-len if SUN_LEN is not defined
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1009 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-28 11:25:16 +00:00
Xuefer
755765da9d
lowercase filenames support, fixed #543
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1007 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-24 11:57:26 +00:00
Jan Kneschke
1982fda295
- close unused pipe-fds as soon as possible to generate a SIGPIPE if the remote end dies.
...
- only send REQUEST_URI and QUERY_STRING if they are set
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1006 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-22 13:16:47 +00:00
Jan Kneschke
4d1eadae1e
handle 'foo.php... == foo.php' case on windows/dos
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1005 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-22 12:50:56 +00:00
Jan Kneschke
cc7a8ae03a
improved error-msg for configuration errors
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1001 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-15 18:10:05 +00:00
Jan Kneschke
7cd02126d5
oops, fixed compile
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1000 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-15 18:09:01 +00:00
Jan Kneschke
ba50f7fbfc
don't terminate the request, just ignore it
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@999 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-15 15:19:10 +00:00
Jan Kneschke
f965cd20ae
- move the extra-stat() out of the main-path
...
it was only used to detect file-shrinks, but also resulted in interupted
transfers if the file was removed, but still open.
- we detect file-shrinks now if sendfile() returns 0
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@998 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-15 10:46:17 +00:00
Jan Kneschke
7e861ea32e
- decrement proc-load if we really incremented it
...
- added host.load as status-variable
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@997 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-14 23:51:52 +00:00
Jan Kneschke
6ae26a7dab
fallback to madvise(), it works at least
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@996 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-14 23:49:38 +00:00
Jan Kneschke
83a0dc2702
disable posix_fadvise support as 2.4.x kernels cause problems here.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@992 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-13 19:22:00 +00:00
Jan Kneschke
a5b69917d1
if posix_fadvise is not implemented, ignore the error
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@991 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-09 14:37:48 +00:00
Jan Kneschke
d7339a70b9
mod_cgi is resetting physical.path *grr*
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@990 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-08 23:10:03 +00:00
Jan Kneschke
2c5ea3f303
301 has a content now, so we need a file_finished to say that we have not content
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@989 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-08 13:40:25 +00:00
Jan Kneschke
dfd9915628
removed warning
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@988 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-08 13:20:14 +00:00