Commit Graph

65 Commits (3d208504513664c67f6e96fb953e4df3a67bd64f)

Author SHA1 Message Date
Stefan Bühler 36f74e5d23 Revert url decoding+simplifying before matching of mod_rewrite/mod_redirect
- Lot of regressions (we forgot to reencode the result)
  - Generic problem: after decode and rewrite "a?b?c": which '?' was the path?query seperator?
  - Possible solution: only decode printable characters (without '?'), and encode the result; do not encode the '%' of a not decoded character.
  - Still a problem with path simplifying, it seems many people use urls like this: http://server1/http%3a//server2/xxx
    and rewrite the path into the querystring.
  - Probably only usable with an extra config option

  => Do NOT use rewrite/redirect to protect specific urls.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2362 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler 4db2292d50 Fix duplicate connection keep-alive/transfer-encoding headers (#960)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2326 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler 9cb47be07f Fix small copy/paste typo in previous commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2297 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler 9e6ef84e91 Do not send content-encoding for 304 (#1754), thx yzlai
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2296 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler ec61ba0559 Match headers case insensitive in response (removing of X-{Sendfile,LIGHTTPD-*}, catching Date/Server)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2281 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler 5547928112 Decode url before matching in mod_rewrite (#1720)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2278 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 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 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
16 years ago
Jan Kneschke 2fcc885f3a fixed duplicate headers as reported in the blog
- this is a partial revert of [1723]


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1767 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Jan Kneschke a0436cea45 encode newlines in HTTP headers (fixes #1106)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1723 152afb58-edef-0310-8abb-c4023f1b3aa9
16 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
Jan Kneschke 55c90e4c60 remove fragments from the request-uri (fixes #869)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1366 152afb58-edef-0310-8abb-c4023f1b3aa9
17 years ago
Marcus Rückert 7cefa9ce73 - cast ptrdiff_t to size_t to avoid a signed comparison warning
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1361 152afb58-edef-0310-8abb-c4023f1b3aa9
17 years ago
Jan Kneschke 3b73da83a2 merged [1217]
fixed allow-http-11


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1282 152afb58-edef-0310-8abb-c4023f1b3aa9
17 years ago
Marcus Rückert 657a024d53 - backport symlink patch in hard version to 1.4.11
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1281 152afb58-edef-0310-8abb-c4023f1b3aa9
17 years ago
Jan Kneschke 85fc576437 strip ... and %20 from physical filenames only on windows
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1018 152afb58-edef-0310-8abb-c4023f1b3aa9
17 years ago
Jan Kneschke 4d1eadae1e handle 'foo.php... == foo.php' case on windows/dos
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1005 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 866af7bc31 added comment about applying response header multiple times
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@951 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 4afd2ae2af renamed server.force-lower-case-files to server.force-lowercase-filenams
- use case-insensitive matches for mod_auth too if the FS is lower-case


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@939 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 93693b11e0 - don't duplicate Server and Date Header
- strip Connection header from backend response if we are proxy
- trust Connection-Length if we are proxy


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@862 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 57ed250138 don't assume the relpath is really set (merge from #120)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@695 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 603d6ace1d don't try to guess, do a read check if we can open it.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@682 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 52125c82b8 check that we can really read the file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@681 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 286b6100a4 moved the etag.h to the right file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@677 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke d956619380 make MacOS X happy when it domes to mod_cml and lua
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@676 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke a7d25eb577 add 404 and 403 to request-handling debug output
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@660 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 9dd464a72b moved last-modifed handling to response.c and let mod_cml_lua.c use it.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@655 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke a31377ace4 fixed handling of OPTIONS * and /
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@579 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 3be06bb84c added read-only WebDAV support
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@577 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke d8394f7f2e moved code to mod_staticfile, mod_dirlisting and mod_indexfile
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@541 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
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
18 years ago
Jan Kneschke 6d5005d9c7 fixed typo
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@409 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
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
18 years ago