Commit Graph

832 Commits

Author SHA1 Message Date
Stefan Bühler 93e7167f84 Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places (#624)
- as stderr gets redirected to /dev/null before exec in childs, we cannot
   write to the log afterwards, so disabled that log messages too.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2163 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:39 +00:00
Stefan Bühler f9999e286e Disable logging to access.log if filename is an empty string
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2162 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:18 +00:00
Stefan Bühler cbdd9e485b Do not rely on PATH_MAX (POSIX does not require it) (#580)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2161 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 11:03:41 +00:00
Stefan Bühler 5a9992b106 Fixed many warnings (compare (un)signed, unused vars, and initialize with zero)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2160 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 11:03:26 +00:00
Stefan Bühler 7adc4d7e8c Remove generated mod_ssi_expreparser.h from source (should be generated by lemon)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2159 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 11:03:13 +00:00
Stefan Bühler 73189c64e7 Fix mod_magnet to set con->mode = p->id if it generates content, so returning 4xx/5xx doesn't append an error page
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2155 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:27:12 +00:00
Stefan Bühler ac92ea3616 Allow all http status codes by default; disable body only for 204,205 and 304; generate error pages for 4xx and 5xx (#1639)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2154 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:10:42 +00:00
Stefan Bühler 8dd78e06c7 Handle EINTR in mod_cgi during write() (#1640)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2153 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 15:05:50 +00:00
Stefan Bühler 4bf89c62b6 Overwrite Content-Type header in mod_dirlisting instead of inserting (#1614), patch by Henrik Holst
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2152 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:20:55 +00:00
Stefan Bühler fcce4c9cbb Fix comment style (use /* */ instead of //)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2151 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:10:41 +00:00
Stefan Bühler fe8b7e575e Fix mod_fastcgi prefix matching: match the prefix always against url, not the absolute filepath (regardless of check-local)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2150 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:08:13 +00:00
Stefan Bühler 79a6ae3fd4 Fix accesslog port (should be port from the connection, not the "server.port") (#1618)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2149 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:04:21 +00:00
Stefan Bühler 0841482318 Enable escaping of % and $ in redirect/rewrite; only two cases changed their behaviour: "%%" => "%", "$$" => "$"
Old behaviour was "%%" => "%%" and "$$" => "$$"


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2148 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:00:15 +00:00
Stefan Bühler bb1d9af71c Fix conditional interpretation of core options
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2147 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 12:38:32 +00:00
Stefan Bühler ff4cabbb1d Don't send empty Server headers (#1620)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2145 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-10 10:54:27 +00:00
Marcus Rückert 91d83ea983 - fix 2 small typos in the ssl fix
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2144 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-07 10:54:26 +00:00
Stefan Bühler bcb3310a62 Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" (#1628)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2143 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-05 20:00:21 +00:00
Stefan Bühler 6363a0908f Fixed SSL_shutdown error handling problems which became visible after [2136].
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2139 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-28 16:33:15 +00:00
Stefan Bühler 2cf3927ef5 Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2138 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-26 14:23:05 +00:00
Stefan Bühler 80be71bd43 Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2137 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-26 13:51:33 +00:00
Stefan Bühler 2b46e3dacc Fix #285 again: read error after SSL_shutdown (thx marton.illes@balabit.com) and clear the error queue before some other calls
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2136 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-26 11:51:06 +00:00
Stefan Bühler 2772e62d8d Fix mod_extforward to compile with old gcc version (#1591)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2129 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-13 15:34:28 +00:00
Stefan Bühler adec5443ee Fix mod_compress to compile with old gcc version (#1592)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2128 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-13 15:34:10 +00:00
Jan Kneschke 7bb555991c fixed handling of waitpid() == EINTR mod_ssi on solaris
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2124 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 19:20:27 +00:00
Stefan Bühler ec5c74ad12 workaround #1587: require userdir.path to be set to enable mod_userdir (empty string allowed)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2120 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 11:45:29 +00:00
Elan Ruusamäe 0fd628958c - verbose FCGI header too small error
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2119 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-07 10:48:34 +00:00
Stefan Bühler 85b8153dfc Fix previous merge
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2113 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-02 12:59:18 +00:00
Xuefer 9ffe08a583 merged part of [1528] from trunk: added the new options and added alternative names for user-agent, remote-ip and query-string
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2112 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-02 11:46:44 +00:00
Stefan Bühler 52840fa1ed fix sending "408 - Timeout" instead of "410 - Gone" for timedout urls in mod_secdownload (#1440)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2111 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-01 19:10:47 +00:00
Stefan Bühler 6754ad5116 fix min-procs handling in mod_scgi.c, just set to max-procs (patch from #623)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2109 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-28 22:19:03 +00:00
Stefan Bühler c065f36bc1 r2136@chromobil: stefan | 2008-02-28 22:18:14 +0100
Fix sending source of cgi script instead of 500 error if fork fails


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2107 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-28 21:19:24 +00:00
Stefan Bühler 0adc0af5fd Fix #1575: spawn-fcgi: only try to connect to unix socket (not tcp) before spawning
- we do not need to check for a tcp socket this way as bind will fail if the socket is in use;
   this does not apply to unix sockets as they are not bound to a filename but to the file, which
   we delete before spawning.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2106 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-28 12:19:34 +00:00
Jan Kneschke 5b20e0d864 fixed missing initialization
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2104 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 23:42:01 +00:00
Jan Kneschke 46396ac56c don't suppress the content of a status 300
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2103 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 23:41:35 +00:00
Jan Kneschke 7a61e46289 fixed warning about incompatible assignment
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2102 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 23:40:59 +00:00
Stefan Bühler 87d3e8e41e Fix #1150: remove compress cache file if compression or write failed
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2101 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 19:36:34 +00:00
Stefan Bühler debd30876a r2123@chromobil: stefan | 2008-02-27 19:30:54 +0100
do not generate a "Content-Length: 0" header for HEAD requests, added test too


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2099 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 18:35:42 +00:00
Stefan Bühler d1bb91108d Fix Content-Length header if response body gets removed in connections.c (#1412, part 2)
- do not touch if it is a HEAD request (but set file_finished)
 - body gets removed for req method OPTION and some status codes


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2098 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 12:15:38 +00:00
Stefan Bühler f570913e3c Fix #1412: do not suppress content for "307 Temporary Redirect"
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2097 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 11:10:33 +00:00
Stefan Bühler 40a41e3b66 Fix the fix #1324/[2086]: if no module handled a request, treat method OPTION as 200, all others as 403.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2095 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 19:14:14 +00:00
Stefan Bühler db1b286ecd r2098@chromobil: stefan | 2008-02-26 17:12:51 +0100
Fix #1574: Check for symlinks after successful pathinfo matching.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2093 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:22:08 +00:00
Stefan Bühler c0db8ab168 r2097@chromobil: stefan | 2008-02-26 17:12:30 +0100
Fix #516: RoundRobin in mod_proxy


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2092 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:21:56 +00:00
Stefan Bühler 88750bb7be r2096@chromobil: stefan | 2008-02-26 17:12:09 +0100
Enhancement #1544: Log the ip of failed auth tries in error.log


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2091 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:21:44 +00:00
Stefan Bühler 87145864db r2095@chromobil: stefan | 2008-02-26 17:11:21 +0100
Fix #1449: Do not add Accept-Ranges header if range-request is disabled


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2090 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:21:32 +00:00
Stefan Bühler 0a894c9cb3 r2094@chromobil: stefan | 2008-02-26 17:10:49 +0100
Fix #1413: including of stdint.h/inttypes.h in etag.c


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2089 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:21:20 +00:00
Stefan Bühler 26c45e8004 r2093@chromobil: stefan | 2008-02-26 17:10:03 +0100
Fix #1349: building outside of the src dir


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2088 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:21:09 +00:00
Stefan Bühler 03f515165f r2092@chromobil: stefan | 2008-02-26 17:08:48 +0100
Fix #1347: memory leak on windows


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2087 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:58 +00:00
Stefan Bühler a25cbfa36b r2091@chromobil: stefan | 2008-02-26 17:06:03 +0100
Fix #1324: req-method OPTIONS: do not insert default response if request was denied
 
  - Request is handled as denied if status != 0 && status != 200


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2086 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:48 +00:00
Stefan Bühler a103fef58c r2090@chromobil: stefan | 2008-02-26 17:04:14 +0100
Fix #1171: Generate a etag/last-modified header for on-the-fly-compressed files. (as 1.5 already does)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2085 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:37 +00:00
Stefan Bühler ad722324d9 r2089@chromobil: stefan | 2008-02-26 17:02:46 +0100
Fix #285: Remove workaround for buggy Opera version with ssl/chunked encoding.
 
  - The workaround may lead to a realloc, but the memory address for a repeated SSL_write must not change.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2084 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:26 +00:00
Stefan Bühler 75f92dd796 r2088@chromobil: stefan | 2008-02-26 17:02:27 +0100
Fix #1565: mod_compress should check if the request is already handled, e.g. by fastcgi


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2083 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:15 +00:00
Stefan Bühler 796502e7af r2087@chromobil: stefan | 2008-02-26 17:01:12 +0100
Fix #1562 and try re-fixing #372: out of range access in fd array
 
  - Bug is in original #372 fix [853]
  - The re-fix for #372 is not tested:
    the problem is that Solaris doesn't want to poll for maxfds (ulimit) events,
    as at least one filedescriptor is used for the poll device.
    So the solution is to just ask for one event less; the number of events
    actually available is returned by the poll syscall, so it should work.
 


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2082 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:04 +00:00
Stefan Bühler d0862e8522 r2086@chromobil: stefan | 2008-02-26 16:15:28 +0100
Fix #1027: create directories in mod_compress (was broken with alias/userdir)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2081 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:19:53 +00:00
Stefan Bühler f350d186fc r2085@chromobil: stefan | 2008-02-26 16:14:50 +0100
Fix #1164: Reset conditional cache


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2080 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:19:42 +00:00
Xuefer c97dc80862 fixed #1571: Crash when trying to add single item to list in config file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2079 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-25 06:57:32 +00:00
Jan Kneschke 94feee046c fixed handling of EAGAIN in linux-sendfile (fixes #657)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2072 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-10 18:49:39 +00:00
Jan Kneschke b719752a6c handle ECONNRESET in the openssl backend
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2066 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-28 07:02:11 +00:00
Jan Kneschke 830bb59d86 don't report the "cgi died ?" in case we killed the dangling CGI process
with SIGTERM


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2065 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-28 07:01:54 +00:00
Jan Kneschke 9d6da0d16c handle ECONNRESET as write-error()
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2063 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-27 16:57:43 +00:00
Elan Ruusamäe cde46f6a3d - support chained proxies in mod_extforward (#1528)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2061 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-21 08:21:20 +00:00
Elan Ruusamäe 022742a5ae - support letterhomes in mod_userdir (#1473)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2058 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-18 12:50:09 +00:00
Elan Ruusamäe 15b126c73e - cosmetic
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2054 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-18 09:23:32 +00:00
Elan Ruusamäe 3078b31568 - generate ETag and Last-Modified headers for mod_ssi based on newest modified include (#1491)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2053 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-18 09:21:07 +00:00
Elan Ruusamäe af4be7d0ce - HTTPS env var should be "on" when using mod_extforward and the X-Forwarded-Proto header is set. (#1499)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2052 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-18 09:07:54 +00:00
Elan Ruusamäe a18086bc35 - open log immediately after daemonizing, fixes SIGPIPEs on startup (#165)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2049 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-17 12:29:47 +00:00
Elan Ruusamäe 299ae40e78 - add IdleServers and Scoreboard directives in ?auto mode for mod_status (#1507)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2045 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-17 09:54:00 +00:00
Elan Ruusamäe 0ce79f8a1c - add missing files to EXTRA_DIST
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2043 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-16 16:11:39 +00:00
Elan Ruusamäe 1f68a04110 - prevent crash in certain php-fcgi configurations (#841)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2037 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-16 01:00:32 +00:00
Elan Ruusamäe 513057ebd4 - fix also scgi and proxy modules. #1489
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2035 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-16 00:26:12 +00:00
Elan Ruusamäe 95769fb3f6 - Print error if X-LIGHTTPD-send-file cannot be done; reset header Content-Length for send-file.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2034 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-16 00:19:54 +00:00
Elan Ruusamäe bdd2fce478 - fixed a bug that made /-prefixed fcgi extensions being handled also when matching the end of the uri (#1489)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2030 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-15 23:20:23 +00:00
Jan Kneschke 708f499d75 fixed case-sensitive match of auth-method (fixes #1456)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2026 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-11-23 15:23:35 +00:00
Elan Ruusamäe b0f37b9c50 - use execv() directly to fcgi app if used as argument. resolves #1428
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2023 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-11-12 16:02:47 +00:00
Elan Ruusamäe 68ebed3753 - typo
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2021 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-11-10 16:49:55 +00:00
Elan Ruusamäe 9ab9f176d2 - apply patches from #1384
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2020 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-11-10 16:12:55 +00:00
Elan Ruusamäe d6b9709b54 - support for matching $HTTP["scheme"] in configs, patch from:
http://trac.lighttpd.net/trac/wiki/HowToRedirectHttpToHttps
  apparently by swiergot/at/gmail.com, adjusted for current svn.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2012 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-11-04 16:53:17 +00:00
Jan Kneschke cb0f21c745 added support for If-Range: <date> (fixes #1346)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2000 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-09 23:00:53 +00:00
Jan Kneschke 46e1ca19cc use strchr() instead of index() as it is POSIX
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1994 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-09 11:57:46 +00:00
Marcus Rückert 7ce73896b7 - handle errors from the fcgi packet construction and return 400 if we have an error.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1993 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-07 23:24:28 +00:00
Jan Kneschke 5c333340be free the buffers after the printed them in the error-msg
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1989 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-06 21:36:38 +00:00
Marcus Rückert a3dcc8b505 - fixed crash with undefined environment variables
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1987 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-06 21:19:25 +00:00
Jan Kneschke 5b2e697cfa * fixed hanging redirects with keep-alive due to missing
"Content-Length: 0" headers


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1985 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-06 11:24:20 +00:00
Jan Kneschke eaed2f1e50 added some extra protection to make sure key-len and val-len don't
overrun


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1984 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-05 11:28:35 +00:00
Jan Kneschke 34b3ee0228 fixed FastCGI header overrun in mod_fastcgi
(reported by mattias@secweb.se)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1983 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-05 11:22:32 +00:00
Jan Kneschke e0629883a9 * fixed forwarding a SIGINT and SIGHUP when using max-workers (#902)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1982 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-05 10:39:56 +00:00
Jan Kneschke b333dd7efa added a first version of the lighttpd-angel process
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1981 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-02 22:23:53 +00:00
Jan Kneschke 29fdd34abd fixed compile error on IRIX 6.5.x on prctl()
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1980 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-02 19:48:47 +00:00
Marcus Rückert f2c8fb6eca - dont crash if the mod_alias config cant be parsed properly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1974 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-28 22:39:30 +00:00
Marcus Rückert 15d8378422 - make sure the etag buffer is non empty if we compare it with if-non-match
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1971 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-27 21:54:45 +00:00
Jan Kneschke 53634de06f protect buffer_is_empty() from NULL buffers
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1969 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-27 21:49:08 +00:00
Jan Kneschke f7df9a9ecd MYSQL_OPT_RECONNECT is available from 5.0.13 on (fixes #1309)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1965 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-23 12:02:20 +00:00
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
2007-08-21 23:35:08 +00:00
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
2007-08-21 17:40:03 +00:00
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
2007-08-18 12:25:52 +00:00
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
2007-08-18 11:35:27 +00:00
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
2007-08-18 11:14:12 +00:00
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
2007-08-18 10:40:20 +00:00
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
2007-08-18 09:44:08 +00:00
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
2007-08-18 09:43:35 +00:00
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
2007-08-18 09:27:11 +00:00