1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-26 19:01:35 +03:00
Commit Graph

2418 Commits

Author SHA1 Message Date
Greg Stein
06fc145f72 Get rid of the DAVParam support. That was a concept to help out
mod_dav providers in the 1.0.x series. Nowadays, the providers are
full-fledged Apache modules and can define their own directives and
set up per-server and per-directory parameters. (for example,
mod_dav_fs and the DAVLockDB directive)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93348 13f79535-47bb-0310-9956-ffa450edef68
2002-02-09 01:57:38 +00:00
Ian Holsman
398690311d add another log message showing when we server a cached file (as info not debug)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93344 13f79535-47bb-0310-9956-ffa450edef68
2002-02-08 19:58:26 +00:00
Bradley Nicholes
2ffd318c88 Added .def files for build on NetWare
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93338 13f79535-47bb-0310-9956-ffa450edef68
2002-02-08 18:31:32 +00:00
Bradley Nicholes
b5c622e3f9 Updated to use the newer locking APIs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93337 13f79535-47bb-0310-9956-ffa450edef68
2002-02-08 18:29:17 +00:00
Ian Holsman
797e5394c1 style police
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93333 13f79535-47bb-0310-9956-ffa450edef68
2002-02-08 06:09:34 +00:00
Justin Erenkrantz
00ad366b42 That check is superfluous since we must have savename defined
(otherwise, we'd get APR_INCOMPLETE on apr_dir_read).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93330 13f79535-47bb-0310-9956-ffa450edef68
2002-02-07 06:50:52 +00:00
Justin Erenkrantz
795f15723d Allow mod_autoindex to serve symlinks if permitted and optimize our stats
so that only one stat() is needed.

If we get APR_FINFO_MIN bits, lookup_dirent won't do a repeated stat()
call.  So, let's do it here.  Also, if we see a symlink, expand it.
(Technically, we don't *have* to expand the symlinks - the resolve_symlink
fix handles that, but we can't really assume that.)  Since we know that
dirent will be rr->finfo anyway, go back to relying on dirent only for
APR_DIR checks.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93329 13f79535-47bb-0310-9956-ffa450edef68
2002-02-07 06:37:09 +00:00
Justin Erenkrantz
f62c2d835b Remove all non-portable DBM calls in mod_auth_dbm and rely only on the
apr-util DBM code.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93260 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 22:41:18 +00:00
Ryan Bloom
862f407872 Remove the install_transport_filters hook. The same function can be
acheived with the pre_connection hook.  I have added the socket to the
pre_connection phase to make this possible.
Reviewed by:	Bill Stoddard


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93259 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 22:18:49 +00:00
Cliff Woolley
e2b7e4bd89 Vetoed by Ken
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93256 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 15:35:54 +00:00
Ken Coar
d19986c33b Change the 'we turned /foo into http://host/foo' log message
to DEBUG; no reason to clutter people's log files with this
	when it's supported behaviour.  Of course, they can find out
	about the performance impact by LogLeveling Debug. :-)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93251 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 11:35:57 +00:00
Cliff Woolley
87e7dd20a9 List files that would result in HTTP_UNAUTHORIZED in addition to
successes and redirections, since there's a chance the client will
actually have the proper authorization to retrieve them.

Reported by:	Stas Bekman


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93250 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 09:26:02 +00:00
Bill Stoddard
7354d00ead Misc cleanup to fix compile warnings and a segfault. This module is still
a long ways from doing anything useful, but every bit helps.

Submitted by: Joe Norton


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93246 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 02:48:34 +00:00
Bill Stoddard
f1041c39f5 Add the return type to the function definition.
Submitted by: Joe Norton


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93245 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 02:47:29 +00:00
Ian Holsman
15a4252225 add a optional function ap_cache_generate_key
which allows a 3rd party module to generate the key name based
on the request_rec.

the idea here is for it to also be able to mess with expiry times
and cachability

add another option.. CacheIgnoreCacheControl. this ignores a 'incoming request's
attempts to get a fresh copy. Mainly I see this as being usefull in r-proxy's


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93242 13f79535-47bb-0310-9956-ffa450edef68
2002-02-05 00:15:42 +00:00
Greg Ames
6cbb3ef98e vetoing and backing out OtherBill's patch rev 1.91. This breaks
mod_autoindex on systems such as Unix where apr_dir_read doesn't automatically
return the filetype.  You see a '?' icon rather than a folder icon
for directories on 2.0.31 because mod_autoindex doesn't realize that the thing
is a directory.

No, we don't want more stat()s either.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93232 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 21:19:08 +00:00
Bill Stoddard
a771a33db8 Bringing up some code to our coding style guidelines
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93221 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 14:48:55 +00:00
Bill Stoddard
147e1301f6 Coding before the first cup of coffee.... Thanks to Martin for pointing this
out.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93220 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 14:43:11 +00:00
Bill Stoddard
1d5e1efe53 CacheRoot takes an argument.
Patch submitted by: Joe Norton <norton@alum.mit.edu>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93218 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 13:06:45 +00:00
Martin Kraemer
34e0d8cf5d Oops. Use ftp_check_globbingchars().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93217 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 10:11:29 +00:00
Martin Kraemer
c5ef15249d And update the year....
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93216 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 10:07:10 +00:00
Martin Kraemer
9f645d6622 React (in the dir lister) on the same globbing chars as used in the escaping routine
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93215 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 10:06:37 +00:00
Ian Holsman
b83f884f1e make it compile on win32
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93214 13f79535-47bb-0310-9956-ffa450edef68
2002-02-04 04:43:34 +00:00
Bill Stoddard
db91e13b5f mod_disk_cache cleanup. Pass request_rec on the open_entity call.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93207 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 19:04:15 +00:00
Justin Erenkrantz
1ed7a6d590 Oh, no. It's legal to have 0 bytes read. Just not -1. If *that* happens,
I want to see a core.  0 bytes reads are fine.  Grr.

(I'm so tempted to throw this assert out, but if we get -1 length
brigades back, we're gonna be screwed.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93202 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 17:43:35 +00:00
Justin Erenkrantz
59874f5443 Make sure we include time.h if it is there. (Other mojo may be needed for
other platforms.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93201 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 17:18:18 +00:00
Bill Stoddard
2e47d4b924 Some coding style tweaks. No function change.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93197 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:28:52 +00:00
Bill Stoddard
1d5a371a5c Support files for mod_disk_cache. Some tweaks to arguments on various hook
calls. Still lots of cleanup work to do here...


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93196 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:24:55 +00:00
Bill Stoddard
85e57f60fc MS Project file for mod_disk_cache
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93195 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:23:10 +00:00
Bill Stoddard
fdae4a165b Fix a few compile errors.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93194 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:14:10 +00:00
Bill Stoddard
a147b916f4 First cut at mod_disk_cache, based on code from the IBM AS400 team. Still
need to cleanup where some bytes are stored, check-in routines this module
calls in cache_util, etc.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93193 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 06:11:40 +00:00
Cliff Woolley
7b7ec65b73 Silence a gcc warning about cpType being possibly used uninitialized,
and constify it while I'm at it.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93188 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:50:58 +00:00
Bill Stoddard
2017c84578 Remove the CACHE_IN filter is we are not doing caching
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93182 13f79535-47bb-0310-9956-ffa450edef68
2002-02-02 16:40:52 +00:00
Bill Stoddard
e4cd22b01e Add a few more checks to determine a response should be cached.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93181 13f79535-47bb-0310-9956-ffa450edef68
2002-02-02 16:20:33 +00:00
Bill Stoddard
bd3d360392 Reintroduce the create_connection hook. This hook is required to enable
modules to completely take over all network i/o from the core.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93171 13f79535-47bb-0310-9956-ffa450edef68
2002-02-01 22:16:31 +00:00
Jeff Trawick
556b417899 mod_cgid: Add retry logic for when the daemon can't fork fast
enough to keep up with new requests.  Start using
HTTP_SERVER_UNAVAILABLE instead of HTTP_INTERNAL_SERVER_ERROR
when we can't talk to the daemon.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93170 13f79535-47bb-0310-9956-ffa450edef68
2002-02-01 22:08:34 +00:00
Ian Holsman
bf6f47a76d missed a '&'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93147 13f79535-47bb-0310-9956-ffa450edef68
2002-02-01 04:07:48 +00:00
Ken Coar
dc161e96cc If the RedirectMatch target is an abs_path, make it an absoluteURI
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93143 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 20:38:08 +00:00
Greg Ames
699e8f8d80 fix redirects for directories. fixup_dir was munging the URI before other
fixup hooks (such as fixup_redir in mod_alias) had a chance to redirect
the original directory URI.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93141 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 19:54:53 +00:00
Ken Coar
f06c74cd5a Fix RedirectMatch so it won't emit invalid Location fields.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93137 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 18:44:48 +00:00
Martin Kraemer
9aaf89fa5c Use symbolic names
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93130 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 14:55:05 +00:00
Martin Kraemer
5b7ceb18a9 Add MDTM support if supported by the FTP server, and if either
timegm() exists or struct tm has a tm_gmtoff field (needed for
easily converting the time string to a GMT timestamp).
Escaping for ftp path arguments now uses a dedicated escaping
routine (in order to only escape globbing characters, not all
shell meta characters).
Execute the SIZE query with the same TYPE setting as the RETR transfer,
because the SIZE may be calculated differently for ASCII files.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93128 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 14:48:51 +00:00
Martin Kraemer
f6e4afd31b Eliminate variables where unneeded; move ";type=" checking code to front;
drop redundant log messages (covered by proxy_ftp_command());
do checks for /%2f as in apache-1.3.24;
escape path argument in SIZE command


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93120 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 22:41:59 +00:00
Ian Holsman
465e16b71b change filter's/handlers to static.
changed a directive to a flag (which is what it was)
Submitted by:	 Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93118 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 18:53:33 +00:00
Ian Holsman
8cf569593b add a ProxyTimeout directive
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93117 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 18:46:56 +00:00
Ian Holsman
3380361860 out damn warnings out
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93115 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 18:05:26 +00:00
Martin Kraemer
0a372f9393 Minor tipos
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93111 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 15:30:09 +00:00
Martin Kraemer
abf7e5464b Of course, more wildcard characters
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93110 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 15:14:39 +00:00
Martin Kraemer
de3c03c970 Port the "squid %2f hack" from apache_1.3.24.
It is now possible to browse the root directory by using a url
like:   ftp://user@host/%2f/
Also, the last path component may contain wildcard characters
'*' and '?', and if they do, a directory listing is created instead
of a file retrieval. Example: ftp://user@host/httpd/server/*.c


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93108 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 15:07:48 +00:00
Martin Kraemer
8ae6ee9022 Oops, sorry. Lost one line.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93107 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 14:59:46 +00:00