Commit Graph

408 Commits

Author SHA1 Message Date
Jan Kneschke f8687d3f6b added functions for upper/lowercase a buffer and added 'len' the html-encoding
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@534 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-15 09:47:48 +00:00
Jan Kneschke b65a3316cf forward all known methods
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@533 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-15 09:47:03 +00:00
Jan Kneschke f926c361f9 ..physical_path is gone and has ben replaced by subrequest_start
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@532 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-15 09:46:23 +00:00
Jan Kneschke 9238cad69e added support for LDAP-bind()
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@531 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-15 09:42:17 +00:00
Jan Kneschke 75c3a8393a added include_shell option to configfiles (merged the rest of the trunk changesets)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@530 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-09 06:42:33 +00:00
Jan Kneschke 360aba360f allow _ in env. and var. and optimized matching of conditions
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@529 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 17:25:55 +00:00
Jan Kneschke 8b07d57d66 added weak-ref and nicer print() (merged [332], [336])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@528 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 17:25:06 +00:00
Jan Kneschke bcbafe63db minor cosmetics (merged [329], [330], [331])
* SIGINT for CTRL-C, exit nicely, 
* -p for print, -t for test. new option to help testing your config.
* srv->config_patches is no longer used. was abandoned [295]


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@527 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 17:07:55 +00:00
Jan Kneschke 6517c89d4a leak fixes
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@526 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 16:44:25 +00:00
Jan Kneschke 630bf7c857 const 1st arg for copy/print (merged [314])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@525 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 16:36:51 +00:00
Jan Kneschke d56f19c7d1 checked | to 'else' (merged [316])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@524 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 16:34:49 +00:00
Jan Kneschke cd4c324ff2 allow numbers in header-keys
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@523 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 16:32:17 +00:00
Jan Kneschke 6b85d74c2b fixed config eval (merged [315])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@522 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 16:15:57 +00:00
Jan Kneschke 6e78c2c8df user defined variable, compute on parsing: string+string, int+int, array+array, var+=expression.
"include" sub configuration file. (merged ([308], [309], [306], [305])


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@520 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 14:40:47 +00:00
Jan Kneschke 8073d5fe9f added nested conditionals (merged [298])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@519 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 13:48:33 +00:00
Jan Kneschke 69d07f6dd4 configparser.h is generated automaticly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@516 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 13:41:43 +00:00
Jan Kneschke 672371f917 moved mysql-include to mysql-vhost-cppflags (merged [296])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@514 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:45:47 +00:00
Jan Kneschke c8408d015c removed setup_connection (merged [295])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@512 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:27:07 +00:00
Jan Kneschke 5c26d86fd2 missing parts of the starttls patch
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@511 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:26:26 +00:00
Jan Kneschke 917bdbc1aa added usertrack.cooke-max-age, usertrack.cooke-domain (merged [176], [295])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@509 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:19:02 +00:00
Jan Kneschke 9e75ba0096 indent array for readability (merged [288])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@508 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:16:53 +00:00
Jan Kneschke 4a6ce4ae5b removed patch_connection, check auth-method, added starttls support (merged [196], [247], [253], [254], [295])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@507 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:15:12 +00:00
Jan Kneschke c25cf5a056 O_BINARY for cygwin, volatile for sig_atomic_t (merged [286], [287])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@505 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 09:48:38 +00:00
Jan Kneschke 6adaad5458 let mod_alias handle directories and files (merged [284], [294])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@504 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 09:42:27 +00:00
Jan Kneschke dee5efa0e2 fixed error-handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@503 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 08:59:19 +00:00
Jan Kneschke 5e134da075 dropped file-cache, added stat-cache and modules ALWAYS cleanup at connection-end
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@502 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 08:22:06 +00:00
Jan Kneschke 99c3f027ce added sorting to output (by erik^)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@494 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 13:03:32 +00:00
Jan Kneschke 74a38947f7 use exec to replace the shell
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@493 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 12:55:07 +00:00
Jan Kneschke fdfaf11367 added CACHE_HIT and CACHE_MISS (#187)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@492 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 11:58:49 +00:00
Jan Kneschke 9a62fdb85d added valid-user support, fixed #4
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@491 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 11:49:26 +00:00
Jan Kneschke e678d8f765 applied selective TCP_CORK from Christian von Roques (#97)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@490 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 11:02:57 +00:00
Jan Kneschke 81edb90eac the error-handler defaults to 200 of error was handled successfully, fixes #168
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@489 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 10:43:47 +00:00
Jan Kneschke 5da36ebd0f handle 'proxy not reachable'
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@488 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 10:15:35 +00:00
Jan Kneschke 8f1558e1bb Content-Length only works if Transfer-Encoding is not set
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@487 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-31 10:15:15 +00:00
Jan Kneschke 6d4a508763 added a switch to disable range requests, this doesn't fix #171 but is a workaround
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@482 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-28 21:05:16 +00:00
Jan Kneschke da7ef63982 improved error-msg
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@481 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-28 20:56:28 +00:00
Jan Kneschke c5bc4e7f71 added support for host and port
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@480 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-28 20:55:55 +00:00
Jan Kneschke c5502e66eb added support to have a PATH_INFO on /prefix if check-local is disabled
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@477 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-28 10:22:53 +00:00
Jan Kneschke 487dd60613 added fucntionname to errormsg
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@476 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-26 08:27:08 +00:00
Jan Kneschke adcc83d26f cleaned up the errorlog writing, default is now stderr, syslog is requested explicitly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@475 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-26 08:26:28 +00:00
Jan Kneschke 61a1e9b2ec reverted last patch and added comment
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@474 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-26 08:24:32 +00:00
Jan Kneschke a8117f5454 do the url matching after we cleaned it up
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@473 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-24 12:46:01 +00:00
Jan Kneschke d576e0ad64 added functions file_isreg() and dir_files() and added last-modified handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@472 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-24 06:58:03 +00:00
Jan Kneschke 6215997b8d added url.rewrite-once and url.rewrite-repeat and mapped the old options both to url.rewrite-once
if the user really wants url.rewrite-repeat he has to use it expecitly. 
Added detection for endless loops


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@471 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-23 20:58:46 +00:00
Jan Kneschke 7126a0f2bc detect endless loops and kill them
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@470 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-23 20:42:34 +00:00
Jan Kneschke b4b428f482 fixed typo
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@469 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-23 20:42:08 +00:00
Jan Kneschke ab054446f4 moved last-modified handling into a exported function and let mod_cml use it
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@468 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-23 20:30:54 +00:00
Jan Kneschke ffcc939e1b Added OPTIONS support
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@467 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-21 20:59:30 +00:00
Jan Kneschke 70e4159456 mod_trigger_b4_dl needs pcre
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@466 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-21 20:57:40 +00:00
Jan Kneschke 4308d8f868 set Date: header for dynamic HTTP/1.0 requests
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@465 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-18 09:22:19 +00:00
Jan Kneschke ec9e53fd56 forgot to add it
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@463 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-17 08:27:44 +00:00
Jan Kneschke 5d1792ad71 removed debug
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@461 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-16 11:35:05 +00:00
Jan Kneschke d30d9ca055 those are in the release .15
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@460 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-16 11:33:10 +00:00
Jan Kneschke 10d7035595 mod_cml_logic.c is replaced by mod_cml_lua.c
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@453 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 18:09:16 +00:00
Jan Kneschke 1408a4820d ported mod_cml to lua
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@452 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 17:46:13 +00:00
Jan Kneschke 161ed5530b call trigger only if GDBM is used
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@451 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 17:45:57 +00:00
Jan Kneschke 5400111ca3 cleanup errorfile_prefix properly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@449 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 17:11:19 +00:00
Jan Kneschke dd72afb2d9 close stderr or redirect it to our logfile
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@448 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 14:32:57 +00:00
Jan Kneschke b11c59ce62 fixed typo
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@447 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 13:44:54 +00:00
Jan Kneschke 0c9b4d42ff made errorfile-prefix conditional
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@446 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 13:26:16 +00:00
Jan Kneschke 1c7fb65b56 a small rename
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@445 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-14 09:08:00 +00:00
Jan Kneschke d8cf40597a replace spaces by _ for memcache
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@443 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-12 18:25:18 +00:00
Jan Kneschke a2356ad632 added string-compare (NE, EQ), fixed handling of trigger.handler
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@441 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-11 11:03:12 +00:00
Jan Kneschke 4e9f62904e fixed memcache support, added more comments and fixed handling of trigger.handler
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@440 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-11 11:01:59 +00:00
Jan Kneschke 39b12c5fc6 be a bit more verbose for log-request-handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@439 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-11 11:00:23 +00:00
Jan Kneschke c1777b764b check parameters for memcache functions and added functions for md5() and fetching params from the query string
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@438 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-11 10:59:39 +00:00
Jan Kneschke 09903fa706 one character was not compared for the string-length was below sizeof(size_t)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@437 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-11 10:58:27 +00:00
Jan Kneschke 4ef82e88c2 fixed memcache detection
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@436 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-10 06:25:10 +00:00
Jan Kneschke b44bbe32e7 fixed compile if memcached and/or gdbm are not available
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@434 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-09 20:18:10 +00:00
Jan Kneschke e6c1e139e2 ah, don't care about the valid chars, control-chars, 127 and 255 are out
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@433 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-09 20:17:40 +00:00
Jan Kneschke a03091d79e added memcache support
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@432 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-09 20:17:07 +00:00
Jan Kneschke 673a6cd0a9 replace mysql my memcache prototypes, fixes parameter handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@431 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-08 22:29:40 +00:00
Jan Kneschke 67553e5563 added namespace support for memcached
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@430 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-08 22:28:46 +00:00
Jan Kneschke a3f7300ec9 added trigger-b4-dl, upped version number to .15
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@429 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-07 22:48:42 +00:00
Jan Kneschke 6d60bcb040 use log_* functions for debugging and don't segfault on evaluation
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@428 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-07 22:39:14 +00:00
Jan Kneschke 3c383fe3df renamed cache.extension to cml.extension and fixed initialisation
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@427 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-07 09:19:42 +00:00
Jan Kneschke 6481f003f2 added a reset function to buffer_array
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@425 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-07 09:18:05 +00:00
Jan Kneschke ee98c09aba rename the function calls to mod_cml
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@424 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-06 16:36:46 +00:00
Jan Kneschke 8761a89cb2 added missing mod_cml.h
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@423 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-06 13:45:32 +00:00
Jan Kneschke 81368ccd4e added mod_cml (Cache Meta Language)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@421 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-06 11:58:19 +00:00
Jan Kneschke 288b0b51e7 removed segfault if parsing config fails
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@413 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-29 15:31:54 +00:00
Jan Kneschke cdffac9fa6 fixed segfaults in error-msgs if syslog() is failing
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@410 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-27 19:25:55 +00:00
Jan Kneschke 6d5005d9c7 fixed typo
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@409 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-27 10:42:56 +00:00
Jan Kneschke b4400d0085 - added ?auto handling from Matthijs van der Klip
- divide by 1024 only if we are about 10240
- divide non-byte counters by 1000 and not 1024


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@408 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-26 13:28:15 +00:00
Jan Kneschke 2ff9f5822e removed debug output
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@401 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-26 11:06:51 +00:00
Jan Kneschke 340d3a763b added -P <pidfile> to write a PID file on successfull spawning
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@400 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-26 11:01:48 +00:00
Jan Kneschke e2e1cc12b6 make encoding of dirlisting configurable (#136)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@399 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-26 10:40:54 +00:00
Jan Kneschke 01afa1ca5b don't segfault on cleanup if the startup failed
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@384 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-15 09:27:04 +00:00
Jan Kneschke 91f59d67b1 fixed scgi protocol handling and run first tests again pythonpaste
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@382 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 10:31:19 +00:00
Jan Kneschke 53c6ac0628 added a mod_scgi.c to implement SCGI for the python folks. This just
a skeleton and has to tested against a real SCGI server.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@381 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:29:00 +00:00
Jan Kneschke e6a090656f disable adaptive spawning for now
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@380 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:28:06 +00:00
Jan Kneschke 533e8047c0 improve readability for error in request header error (fix #101)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@379 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:26:19 +00:00
Jan Kneschke 7bca57bb6b final fix for testcase and #177
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@378 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:18:17 +00:00
Jan Kneschke 5986add693 Quote ETag, fixes #117
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@376 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:09:28 +00:00
Jan Kneschke c8652e52b0 fixed #148 and let PAM use the lighttpd-handle (if someone implements it)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@372 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-05 20:54:55 +00:00
Jan Kneschke 232e6158a9 Fixed segv if debuggin is enabled
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@371 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-05 20:47:37 +00:00
Jan Kneschke d162ea1385 removed dead code, improved debug output and use + instead of % for the host-selection in CARP
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@370 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-05 12:00:29 +00:00
Jan Kneschke 8e67134b23 use size_t instead of unsigned int and char * instead of unsigned char *
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@369 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-05 11:59:33 +00:00
Jan Kneschke c65f4e0223 make port 80 the default
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@368 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-05 09:05:10 +00:00
Jan Kneschke e5a1b1eb4a make sure we mark the connection as SSL (important for redirects later)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@367 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-05 08:34:42 +00:00
Jan Kneschke acfe706d73 Looks like the '+' -> ' ' transformation is only applied in the ?query part and not the rel-path.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@366 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-04 15:42:31 +00:00
Jan Kneschke efa87f47c1 don't close the connection twice on HUP|IN
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@365 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-04 15:19:50 +00:00
Jan Kneschke b527f569af added more debug info and fix hang after a local fcgi process has died
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@364 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-04 14:28:00 +00:00
Jan Kneschke 4335479051 handle ranges >2G correctly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@363 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-04 14:27:17 +00:00
Jan Kneschke bca076c9d0 added balancing and debugging info
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@361 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-31 08:23:33 +00:00
Jan Kneschke dfe03995d7 Fix crash if qop is not set in the authorize response
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@360 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-31 08:22:37 +00:00
Jan Kneschke b90f231042 handle range requests for >2Gb correctly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@357 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-23 13:43:40 +00:00
Jan Kneschke 3eaaf78038 cleanup nicely
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@356 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-23 13:43:01 +00:00
Jan Kneschke f88ca6b629 Clenaup environment before finishing the request
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@354 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-20 13:30:53 +00:00
Jan Kneschke b5e848d5b4 - Added hash, round-robin balancers
- fixed return codes in two cases
- droped some endless loops
- FIXME: re-enabling of dead hosts is missing for now


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@350 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-08 06:25:17 +00:00
Jan Kneschke e7def825a8 remove FDEVENT_OUT as soon as we hit _READ and only call joblist_append() if really needed
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@343 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-05 08:15:05 +00:00
Jan Kneschke 6b5c314cc6 added the name of the plugin if dlopen fails
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@342 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-05 08:08:45 +00:00
Jan Kneschke 279af9590f don't use accept-filtering if SSL is used
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@320 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-30 10:03:29 +00:00
Jan Kneschke be5bb63b00 merged [166]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@318 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-30 05:39:37 +00:00
Jan Kneschke 3e61a898cb merged [238]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@292 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-20 18:07:58 +00:00
Jan Kneschke a4f3a407bf set server-name to http_host if it is not set explicitly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@291 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-20 16:44:00 +00:00
Jan Kneschke d501b21f57 merged [281]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@285 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-15 08:10:39 +00:00
Jan Kneschke 3b5fffce48 merged partts of [192] and [194]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@283 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-15 08:05:08 +00:00
Jan Kneschke ba06bde6d5 merged [274] and [239]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@278 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-14 21:23:09 +00:00
Jan Kneschke 4f14ff8424 merge [109], [259], [266] and [267]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@277 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-14 21:20:29 +00:00
Jan Kneschke e1fb43d9dd fixed NULL dereference in logfile cycling if accesslog is not set
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@98 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-06 11:20:35 +00:00
Jan Kneschke 9d287563c6 added delayed connect() handling from mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@96 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-05 16:30:29 +00:00
Jan Kneschke 54bda6d388 get usefull error-msg on SSL_read + SSL_ERROR_SYSCALL
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@95 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-05 16:30:02 +00:00
Jan Kneschke 6b297b3341 ignore remove-close in freebsd sendfile()
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@90 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-04 10:25:43 +00:00
Jan Kneschke 9b59d5800f NAME_MAX needs sys/syslimits.h on cygwin
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@88 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-03 23:52:40 +00:00
Jan Kneschke 068152996b handle EPIPE in SSL_read as remote-close
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@85 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-03 17:35:46 +00:00
Jan Kneschke 2477686b50 added dir-listing.hide-dotfiles and customizable CSS for dirlisting written by smi
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@84 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-03 17:33:44 +00:00
Jan Kneschke 1956311750 check errno on SSL_ERROR_SYSCALL
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@83 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-03 17:17:18 +00:00
Jan Kneschke af3ddde684 handle remote shutdown correctly
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@82 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-03 16:59:36 +00:00
Jan Kneschke b68e4a2f2c strip double / on path-info
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@79 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 18:36:32 +00:00
Jan Kneschke 85194f365f fixed pathinfo handling on /fcgi_pattern
* added a new option broken-scriptfilename which should be 
  enabled for PHP if PATH_INFO is needed.
* droped path_info_offset and used PATH_INFO from response.c
  directly
* set PATH_TRANSLATED only if PATH_INFO is set
* always match the extension/prefix on uri.path



git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@78 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 18:36:02 +00:00
Jan Kneschke 829aeb9455 SIGCLD -> SIGCHLD (reported by s0 and Pierre-Yves)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@77 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 15:50:50 +00:00
Jan Kneschke 9a5cf4a2ed fixed handling of dead fastcgi processes if deamonized
fixed handling of dead fastcgi process which sent their SIGCLD to
  initd and not to lighttpd. Moving the daemonize before starting
  the fastcgi procs fixes this.



git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@74 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 13:49:08 +00:00
Jan Kneschke 853b4f5b06 don't touch the exit-conditions for the loop directly (reverting a this part of one of the last changesets)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@73 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 11:31:21 +00:00
Jan Kneschke 3caa67a131 added | to the non-rfc characters in URI
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@71 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 09:11:42 +00:00
Jan Kneschke 06c35abe4a updated ChangeLog and NEWS from timeline
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@70 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 23:28:52 +00:00
Jan Kneschke bde657648d compile fixes for MIPSpro on IRIX
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@68 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 23:01:12 +00:00
Jan Kneschke 0cccf378c7 PACKAGE -> PACKAGE_NAME (by smi)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@67 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 22:16:42 +00:00
Jan Kneschke 7725e92ff6 rewrote the event and error handling with the help of the fcgi-responder.c from the tests.
fixed #38 and other issues this way


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@63 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 16:54:47 +00:00
Jan Kneschke 2420fd96d2 added checks for the line-terminator handling and cleanup the configs
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@62 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 13:37:40 +00:00
Jan Kneschke 0f779ce2f9 fixed #25 by setting all duplicates to 400
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@60 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 10:55:47 +00:00
Jan Kneschke a6dfdad19f disable dump_packet
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@59 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-01 10:53:52 +00:00
Jan Kneschke 6e83b23ec9 parse last-modified timestamp and compare it.
let's hope that strptime() works everywhere


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@58 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 17:26:33 +00:00
Jan Kneschke c3662bebf1 'modification' as ignored and handled as 'access'
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@57 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 17:24:05 +00:00
Jan Kneschke 26b184ba6f this one belongs to the last changeset
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@55 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 10:54:23 +00:00
Jan Kneschke 75fae49e37 * If sizeof(long) == sizeof(off_t), buffer_{append,copy}_off_t()
are only macros to buffer_{append,copy}_long()
* ltostr() returns the string length instead of always 0
* Don't check return value of buffer_prepare_append(buffer *b), since
  it only returns -1 if b == NULL, which we do a few lines above anyway.
* Improved buffer_path_simplify(). No "dot_stack" required anymore.
  Operation can also be performed inplace.
* Check errno also against EACCES at pidfile-unlink for not logging
  a "Permission denied".


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@54 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 10:38:16 +00:00
Jan Kneschke aa63120540 tolerate \n\n instead of \r\n\r\n and handle overlapping
EOL correctly


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@52 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 09:35:06 +00:00
Jan Kneschke 8b248ce3a5 moved SA_LEN macro to http-header-glue.c
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@50 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 09:04:44 +00:00
Jan Kneschke d26f6893d9 moved external functions to *-glue.c
this simplifies the linkage on windows and macosx
which can't reference the binary for symbols


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@49 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 08:42:47 +00:00
Jan Kneschke 6a822b673e Don't use broken http_host pointer for debugging.
This circumvents a crash but is not a final fix
as the reason fo the crash hasn't been found yet.



git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@48 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 08:40:00 +00:00
Jan Kneschke 47ca38938d removed warnings about shadowed variables
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@47 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 08:33:38 +00:00
Jan Kneschke 0cc8a5c56c added ssl.ca-file and updated error-message if private and public key don't match
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@46 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 00:00:55 +00:00
Jan Kneschke 9ce460f051 forget a 's' of the format-string (Bug #31)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@45 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-27 22:48:12 +00:00
Jan Kneschke bc7f12ca71 replace inet_addr() by inet_aton() as the man-page on
linux recommends and as solaris likes for SunForte


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@39 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-22 00:18:04 +00:00
Jan Kneschke 44997909b1 fix segfault in log_error_write if host is empty
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@38 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-22 00:17:11 +00:00
Jan Kneschke 91066a8b60 allow empty cgi.assign handler
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@35 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-20 19:05:55 +00:00
Jan Kneschke a39b52810e added SERVER_ADDR, REMOTE_PORT to mod_fastcgi and mod_cgi and
REQUEST_URI to mod_cgi


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@32 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-20 15:02:57 +00:00
Jan Kneschke bcdc6a3bbc moved everything below trunk/ and added branches/ and tags/
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-20 14:27:00 +00:00