Stefan Bühler
adc97e5ba3
[*cgi] Use physical base dir (alias, userdir) as DOCUMENT_ROOT in cgi environments ( fixes #2216 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2794 152afb58-edef-0310-8abb-c4023f1b3aa9
2011-06-13 12:22:02 +00:00
Stefan Bühler
955fd0d08f
[mod_fastcgi]: remove unused var "last_used"
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2772 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-12-10 17:38:50 +00:00
Stefan Bühler
7e5b0fe9ab
Rename fdevent_event_add to _set to reflect what the function does. Fix some handlers.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2765 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-08-17 09:54:42 +00:00
Stefan Bühler
38f2d1ddd7
cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls
...
* use log functions
* convert flags
* fix handler callback prototype
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2752 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-08-06 21:57:15 +00:00
Stefan Bühler
c6c8ad2ac7
mod_fastcgi: Send 502 "Bad Gateway" if we couldn't open the file for X-Sendfile ( fixes #2226 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2735 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-07-04 08:30:52 +00:00
Stefan Bühler
d58fea0c7a
Fix parsing of fastcgi.debug option on big-endian ( fixes #2230 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2733 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-07-04 07:45:29 +00:00
Stefan Bühler
d601017b75
mod_fastcgi: x-sendfile2 parse error debugging
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2703 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-01-20 13:22:40 +00:00
Stefan Bühler
2eaf42d0e5
mod_fastcgi: Don't reconnect after connect() succeeded ( fixes #2096 )
...
- a reconnect would try to rebuild the outgoing queue,
which involves reusing the post body - but the first
try already removed it.
we could try reusing the queue, but otoh that really
isn't our problem. accept() it - handle it.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2692 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-07 22:00:10 +00:00
Stefan Bühler
781784664a
mod_fastcgi: fix mod_fastcgi packet parsing
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2691 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-07 18:24:04 +00:00
Stefan Bühler
987110317f
Fix broken return values from int to enum in mod_fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2670 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-20 07:32:40 +00:00
Stefan Bühler
19838e99eb
mod_fastcgi: Fix host->active_procs counter, return 503 if connect wasn't successful after 5 tries ( fixes #1825 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2657 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 09:02:41 +00:00
Stefan Bühler
8c83976dbe
mod_fastcgi: Add "X-Sendfile2" - supporting multiple ranged files ( fixes #2008 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2651 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-14 17:32:38 +00:00
Stefan Bühler
b9f5f1de8c
Fix mod_fastcgi bin-path check
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2646 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-12 21:49:01 +00:00
Stefan Bühler
fd13e94427
mod_fastcgi: restart local procs immediately after they terminated, fix local procs handling
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2639 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 21:54:50 +00:00
Stefan Bühler
925a5ed5c4
mod_fastcgi: fix is_local detection, respawn backends if bin-path is set ( fixes #897 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2635 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 19:46:32 +00:00
Stefan Bühler
b9db35f5ff
mod_fastcgi: don't disable backend if disable-time is 0 ( fixes #1825 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2632 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 19:08:38 +00:00
Stefan Bühler
22e8b456a9
Fix header inclusion order, always include "config.h" before any system header
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2624 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 14:31:42 +00:00
Elan Ruusamäe
e74295262b
- space cosmetic for last commit
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2620 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-09-14 10:41:13 +00:00
Elan Ruusamäe
cb1ad7b130
- include query string in fastcgi backend errors
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2619 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-09-14 09:57:08 +00:00
Stefan Bühler
7b4d8fe8c3
Remove adaptive spawning code from fastcgi (was disabled for a long time)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2598 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-23 21:43:07 +00:00
Stefan Bühler
8004ebbddf
Use disable-time in fastcgi for all disables after errors, default is 1sec ( fixes #2040 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2597 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-23 21:42:59 +00:00
Stefan Bühler
9e6b2c63f0
Fix handling network-write return values ( #2024 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2596 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-23 21:42:24 +00:00
Stefan Bühler
4df22f2a32
Fix issues found with clang analyzer
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2594 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-21 20:35:27 +00:00
Stefan Bühler
839aa7dbd9
Reset ignored signals to SIG_DFL before exec() in fastcgi/scgi ( fixes #2029 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2582 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-13 13:41:44 +00:00
Stefan Bühler
fbdb305f8a
Add server.breakagelog, a "special" stderr ( fixes #1863 )
...
* The breakage-log simply replaces stderr (the old stderr is moved away if needed for errorlog),
and stderr isn't closed after forking.
It defaults to stderr if started with -n (no daemonize), otherwise it defaults to /dev/null.
It is _not_ reopened in log_error_cycle, as there may be many long running childs which have it
still open anyway. Use a pipe-logger with cycle-support if you need it.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2550 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-21 17:25:39 +00:00
Stefan Bühler
b2108c436c
Remove X-Sendfile-Range feature; it will be replaced with something more powerful ( #2005 , #2008 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2542 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-19 19:06:39 +00:00
Stefan Bühler
ad1e80e5af
Add X-Sendfile-Range feature ( fixes #2005 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2531 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-11 12:35:00 +00:00
Stefan Bühler
b063f0186a
Improve FastCGI performance ( fixes #1999 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2509 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-07 17:46:11 +00:00
Stefan Bühler
fbf79a8e72
Modify fastcgi error message
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2507 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-03 16:07:20 +00:00
Stefan Bühler
1a5d8c2dc4
Fix mod-fastcgi counters
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2506 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-05-19 18:39:44 +00:00
Stefan Bühler
d947d0d2da
Fix x-sendfile 2gb limiting ( fixes #1970 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2494 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-28 18:28:13 +00:00
Stefan Bühler
ecfdc60945
Fix SERVER_NAME port stripping ( fixes #1968 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2492 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-28 18:26:23 +00:00
Stefan Bühler
e7b0528e9e
Fix bug with FastCGI request id overflow under high load; just use always id 1 as we don't use multiplexing. (thx jgray)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2477 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-24 19:22:16 +00:00
Stefan Bühler
3172b49840
Fix trailing zero char in REQUEST_URI after "strip-request-uri" in mod_fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2472 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-15 22:33:30 +00:00
Stefan Bühler
2e823e8d14
Use server.tag for SERVER_SOFTWARE if configured ( fixes #357 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2471 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-11 12:48:27 +00:00
Stefan Bühler
638ee6cad9
Add revision number to package version for svn/git checkouts
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2467 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-10 17:35:19 +00:00
Stefan Bühler
def70d86e9
Remove the optional port info from SERVER_NAME (thx Mr_Bond)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2431 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-09 16:51:44 +00:00
Stefan Bühler
1e69f57b50
Remove link from errormsg about fastcgi apps ( fixes #1942 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2426 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-05 21:50:56 +00:00
Stefan Bühler
ce39062dd2
Fix workaround for incorrect path info/scriptname if fastcgi prefix is "/" ( fixes #729 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2421 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-01 17:35:17 +00:00
Stefan Bühler
63f785a2f8
Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2414 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-07 21:05:37 +00:00
Stefan Bühler
2a765780da
Fix fastcgi-authorizer handling; Status: 200 is now accepted as the doc requests
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2351 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-10-16 12:42:18 +00:00
Stefan Bühler
80a4f7a721
Fix fastcgi authorization in subdirectories with check-local=disabled; don't split pathinfo for authorizer. ( #963 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2324 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-10-01 20:08:23 +00:00
Stefan Bühler
5194c28220
Fix "comparison between signed and unsigned" warning on 64 bit in mod_fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2288 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:56 +00:00
Stefan Bühler
b511c42939
Replaced fprintf with log_error_write in mod-fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2287 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:49 +00:00
Stefan Bühler
ad12e4c5b2
Insert many con->mode checks; they should prevent two modules to handle the same request if they shouldn't ( #631 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2271 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 16:13:34 +00:00
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
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
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
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