Commit Graph

82 Commits (f9999e286ed0b00a1f0a2fdf4eb3015733e3e5e5)

Author SHA1 Message Date
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
15 years ago
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
15 years ago
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
15 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
Jan Kneschke 51826fc05c renamed ltostr() to LI_ltostr() to fix compile on HP/UX (fixes #465)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1951 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke c4e3150283 fixed possible overflow in unix-socket path checks on BSD (#713)
- use sizeof(sun_path) instead of UNIX_PATH_MAX which might not be
  defined


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1944 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke 8f9f532083 * fixed crash on 32bit archs when debug-msgs are printed in mod_scgi,
mod_fastcgi and mod_webdav (#1263)



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


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1879 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
17 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
Jan Kneschke 06d111d8aa distribute connect-storms properly over the available hosts
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@970 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 9ec477a374 - fixed load-balancing (#480)
- added fastcgi.map-extensions 


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@962 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke de3bdbf1a2 fixed crash cause by missing comma (patch from <bobby@alphatrade.com>)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@958 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke e41496fba7 fixed error-msg
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@943 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke ebb0efb457 oops, split the path on the final path to the binary itself
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@938 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 8cf82a44a1 fixed wording in error-msgs
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@931 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 4a86d31562 chdir to the bin-path dir before exec()ing the to-be-spawned fastcgi backend
- fixes #331


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@926 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke ea57fa1747 ok, rel_path is not updated by mod_indexfile or the pathinfo handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@924 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 415e215746 use physical.rel_path instead url.path to handle case-insensitive file-systems in the right way
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@923 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke abe6d62a02 don't strip numbers from the starting env (fixed #438)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@915 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke bc95f8024a added statistics to the fastcgi module and a simple text/plain reporter to mod_status
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@914 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke ab8493f603 print usefull information if the backend crashes for some reason
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@912 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke b789ce87a1 remove zombies again
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@902 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke b85fb3b41d fix logfile spamming on conn-refused and friends
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@900 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke a4be52451f more unsigned/sign compare fixes
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@861 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 32879e3663 fixed stripping if strip and input are the same
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@833 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago