Commit Graph

1143 Commits

Author SHA1 Message Date
Stefan Bühler 6ce1dfb0d1 mod_{fast,s}cgi: overwrite environment variables (#1722)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2265 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 20:45:36 +00:00
Stefan Bühler a7f5983e05 Fix EINTR handling for waitpid in mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2264 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 20:45:31 +00:00
Stefan Bühler d0b5d2b45f Fix round-robin balancing in mod_proxy (#1715)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2258 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:24 +00:00
Stefan Bühler 60b90dad70 Use filedescriptor 0 for mod_scgi spawn socket, redirect STDERR to /dev/null (#1716)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2257 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:22 +00:00
Stefan Bühler c1662bcf8a Handle EAGAIN and EINTR for freebsd sendfile (#1675)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2256 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:20 +00:00
Stefan Bühler 3f791f46d5 Fix mod_secdownload problem with unsigned time_t (#1688)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2255 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:18 +00:00
Stefan Bühler 0c16fddde3 Handle only HEAD, GET and POST in mod_dirlisting (same as in staticfile) (#1687)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2253 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 21:37:30 +00:00
Stefan Bühler 41868422f3 case insensitive match for secdownload md5 token (#1710)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2251 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 21:16:25 +00:00
Stefan Bühler 52861d77df Replace buffer_{append,copy}_string with the _len variant where possible (#1732, thx crypt)
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x))


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 19:38:32 +00:00
Stefan Bühler 0c8ebbeb60 [tests] Fix fastcgi php finding
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2249 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 17:40:09 +00:00
Stefan Bühler 25c7c7f3f8 fixed typo in mod_accesslog, localtime instead of localtime_r (#1699)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2247 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 16:42:14 +00:00
Stefan Bühler 2bd973108d [tests] remove env TODO test: don't use undefined env vars
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2244 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:36 +00:00
Stefan Bühler 3bb07cad07 [tests] Fixed tests needing php running (if not running on port 1026, search php in env[PHP] or /usr/bin/php-cgi)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2243 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:28 +00:00
Stefan Bühler cbd40dc44b [tests] Remove pidfile from test system
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2242 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:13 +00:00
Stefan Bühler 0b257bcefa [tests] Fixed test system, use foreground daemons and waitpid
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2241 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:21:34 +00:00
Stefan Bühler a70ba6c625 Fix scgi HTTP/1.* status parsing (#1638), found by met@uberstats.com
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2223 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-28 08:43:23 +00:00
Stefan Bühler 543830266c Fix bug with IPv6 in mod_evasive
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2222 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-28 08:43:19 +00:00
Stefan Bühler f08cd32877 Close connection in mod_magnet if returned status code
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2201 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-20 17:55:14 +00:00
Stefan Bühler cf789917f7 Close connection after redirect in trigger_b4_dl
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2200 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-20 12:58:18 +00:00
Elan Ruusamäe 0f515626e4 - let spawn-fcgi propagate exit code from spawned fcgi application
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2198 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 15:45:05 +00:00
Elan Ruusamäe 00e5a032d6 - print success message to stdout (for discarding it from initscripts)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2196 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:47:39 +00:00
Elan Ruusamäe f08ffad238 - strerror() wants errno as param not arbitary exit value from spawned child
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2194 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:40:52 +00:00
Elan Ruusamäe 5fa895e8ec - revert unwanted commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2193 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:33:06 +00:00
Elan Ruusamäe ef95813dea - merge spawn-fcgi changes from trunk (from @2191)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2192 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:26:20 +00:00
Elan Ruusamäe 13576f67a6 - fix typo ;) #1691
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2191 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-06-17 16:32:05 +00:00
Xuefer b5632eada1 fixed #729: Incorrect PATH_INFO when FastCGI is serving "/", use "fix-root-scriptname" => "enable" to workaround
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2182 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 10:04:01 +00:00
Xuefer 765d3cbe6a avoid undefined index triggered by user's php.ini
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2178 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 06:50:01 +00:00
Xuefer 695a227783 build mod_extforward in scons
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2176 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 06:28:08 +00:00
Xuefer ead7276368 mark testcase executable
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2174 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 06:25:54 +00:00
Xuefer 5921dc1f2d sync code between fastcgi->scgi: copy note_is_sent, fix typos
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2173 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 03:41:17 +00:00
Xuefer b557589f05 sync the "if" logic block with mod_fastcgi to make the indention same
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2172 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 03:31:22 +00:00
Xuefer 098ea27629 merged [2170] from trunk: fixed include basedir within include_shell, thanks to lunatic
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2171 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-15 01:24:00 +00:00
Stefan Bühler 4adb52a416 Fix dependencies of the parser files in the Makefile
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2167 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:01:45 +00:00
Stefan Bühler 193b933329 Fix type in previous commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2166 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:01:22 +00:00
Stefan Bühler e93cb224c1 Fix more warnings (unused var, pointer types in md5.c)
- Use const void* in instead of unsigned char* in MD5_Update
   (same as in the openssl api, to avoid signed/unsigned char* warnings)
 - Add const to some pointers in md5.c


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2165 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:01:00 +00:00
Stefan Bühler 7b309ef770 Fix warning of deprecated ldap api usage (define LDAP_DEPRECATED)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2164 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:00:01 +00:00
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 c431c5166f And now really delete lighttpd.spec.in itself
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2158 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 20:01:51 +00:00
Stefan Bühler 70c0280c92 Remove lighttpd.spec* from source, fixing all problems with it ;-)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2157 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:54:35 +00:00
Stefan Bühler 074223041a Fix typo in test description
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2156 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:45:05 +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