summaryrefslogtreecommitdiffstats
path: root/server (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prevent the server from crashing when entering infinite loops. TheAndré Malo2003-05-192-0/+173
| | | | | | | | | | | | new LimitInternalRecursion directive configures limits of subsequent internal redirects and nested subrequests, after which the request will be aborted. [William Rowe, Jeff Trawick, Andr� Malo] PR: 19753 (and probably others) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99911 13f79535-47bb-0310-9956-ffa450edef68
* fix a bogus check for IPv6 support that led to an unnecessaryJeff Trawick2003-05-131-1/+1
| | | | | | | | | string search on builds of Apache without IPv6 support Submitted by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99776 13f79535-47bb-0310-9956-ffa450edef68
* Porting to BS2000: the antique interface (BS2000Account) no longer existsMartin Kraemer2003-05-091-16/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99747 13f79535-47bb-0310-9956-ffa450edef68
* Throw a warning if AllowOverride is used inside of <Location> or <Files>.André Malo2003-05-021-0/+7
| | | | | | | | | | | Unfortunately there's no clean way to detect <DirectoryMatch>. It would not be sufficient, because <Directory ~> should be checked then, too. Hmm. PR: 19512 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99695 13f79535-47bb-0310-9956-ffa450edef68
* prefork MPM: Use the right permissions for the directory createdJeff Trawick2003-04-241-1/+4
| | | | | | | | | | for gprof support. Submitted by: Jim Carlson <jcarlson@jnous.com> Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99574 13f79535-47bb-0310-9956-ffa450edef68
* the error code is in the apr_status_t, not errnoJeff Trawick2003-04-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99573 13f79535-47bb-0310-9956-ffa450edef68
* improve -DONE_PROCESS handling with prefork MPM so thatJeff Trawick2003-04-231-4/+13
| | | | | | | | | | | | | | | it returns from ap_mpm_run() and allows core Apache code to run any required cleanups this resolves problems such as semaphore leaks and shared memory that isn't cleaned up (some necessary re-indention to be done in a separate commit; otherwise, this would be a difficult commit to review) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99533 13f79535-47bb-0310-9956-ffa450edef68
* Fix ap_construct_url() so that it surrounds IPv6 literal addressJeff Trawick2003-04-221-1/+18
| | | | | | | | | strings with []. This fixes certain types of redirection. PR: 19207 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99517 13f79535-47bb-0310-9956-ffa450edef68
* fix some discrepancies between format strings and arguments,Jeff Trawick2003-04-161-3/+3
| | | | | | | resolving some warnings on 64-bit systems git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99374 13f79535-47bb-0310-9956-ffa450edef68
* Enable ap_sock_disable_nagle for Windows. This along with the addition ofAllan K. Edwards2003-04-161-1/+1
| | | | | | | | APR_TCP_NODELAY_INHERITED to apr.hw will cause Nagle to be disabled for Windows. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99373 13f79535-47bb-0310-9956-ffa450edef68
* consolidate code related to sig_coredumpJeff Trawick2003-04-0911-337/+142
| | | | | | | | | | | a note on perchild: perchild exception handling was busted before this and is still busted the problem I noticed was that a client that exposes a segfault never gets its connection dropped and the parent never notices that the child process that segfaulted hasexited git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99312 13f79535-47bb-0310-9956-ffa450edef68
* Add .NOTPARALLEL target for exports.c. This allows a parallel make build toJustin Erenkrantz2003-04-061-0/+3
| | | | | | | complete successfully. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99280 13f79535-47bb-0310-9956-ffa450edef68
* Don't run regex cleanups before execBrian Pane2003-03-311-1/+2
| | | | | | | | Submitted by: Jeff Trawick Reviewed by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99133 13f79535-47bb-0310-9956-ffa450edef68
* Quit registering *two* cleanups listening sockets prior to exec.William A. Rowe Jr2003-03-311-2/+13
| | | | | | | | | | We open them once, register a cleanup only once. Submitted by: Jeff Trawick Reviewed by: FirstBill, OtherBill git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99130 13f79535-47bb-0310-9956-ffa450edef68
* Simplify and shorten the code path for scanning request headersBrian Pane2003-03-291-81/+31
| | | | | | | Reviewed by: Greg Ames, Bill Rowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99109 13f79535-47bb-0310-9956-ffa450edef68
* ap_rgetline_core: set the number of bytes read & copied into the caller'sGreg Ames2003-03-271-0/+3
| | | | | | | | | | | buffer when returning APR_ENOSPC. This prevents seg faults in ap_get_mime_headers_core in an error path which handles headers that are too long. Submitted by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99079 13f79535-47bb-0310-9956-ffa450edef68
* Need to report a select() error vs a timeout. Also avoid hogging the CPU onBradley Nicholes2003-03-261-1/+7
| | | | | | | an error. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99065 13f79535-47bb-0310-9956-ffa450edef68
* ap_get_mime_headers_core: allocate space for the trailing null when thereGreg Ames2003-03-241-3/+4
| | | | | | | are folded headers. PR 18170 [Peter Mayne <PeterMayne@SPAM_SUX.ap.spherion.com>] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99057 13f79535-47bb-0310-9956-ffa450edef68
* Oops - undo wrong commitMartin Kraemer2003-03-241-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99056 13f79535-47bb-0310-9956-ffa450edef68
* On failures, try to add a hint what went wrongMartin Kraemer2003-03-242-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99055 13f79535-47bb-0310-9956-ffa450edef68
* SECURITY: Eliminated leaks of several file descriptors to childWilliam A. Rowe Jr2003-03-203-2/+8
| | | | | | | | | | | processes, such as CGI scripts. PR: 17206 Submitted by: Christian Kratzer <ck@cksoft.de>, Bjoern A. Zeeb <bz@zabbadoz.net> Reviewed by: Joe Orton, Will Rowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99032 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a small logic problem when printing out the console command helpBradley Nicholes2003-03-181-1/+1
| | | | | | | Submitted by: Ulrich Neumann <U_Neumann@gne.de> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99017 13f79535-47bb-0310-9956-ffa450edef68
* After discussions at length on dev@apr/httpd, it is determined thatWilliam A. Rowe Jr2003-03-112-2/+2
| | | | | | | | | | | the older .dbg format symbols are not worth the interference with generating complete .pdb symbolic debugging databases. This patch further eliminates pdbtype:sept flags that interfere with deciphering local symbols and type information. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98970 13f79535-47bb-0310-9956-ffa450edef68
* clean up the invocation of APR_CHECK_APR_DEFINE()...Jeff Trawick2003-03-071-1/+1
| | | | | | | | | | it no longer references the second parameter, which was incorrectly specified with out-of-tree APR anyway (which resulted in prefork being selected on Unix since we didn't ever think APR had thread support) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98917 13f79535-47bb-0310-9956-ffa450edef68
* Minor MMN bump:André Malo2003-03-072-2/+65
| | | | | | | | | | | | Forward port: Escape special characters (especially control characters) in mod_log_config to make a clear distinction between client-supplied strings (with special characters) and server-side strings. This was already introduced in version 1.3.25. Obtained from: Patch in 1.3.25-dev by Martin git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98912 13f79535-47bb-0310-9956-ffa450edef68
* Linux 2.4+: enable coredumps when Apache is started as root ifGreg Ames2003-03-061-0/+2
| | | | | | | CoreDumpDirectory is explicitly coded git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98908 13f79535-47bb-0310-9956-ffa450edef68
* * include/http_config.hSander Striker2003-03-061-6/+56
| | | | | | | | | | | | | | | | | | | | (ap_get_module_config, ap_set_module_config): Always declare. * include/httpd.h (ap_strchr, ap_strchr_c, ap_strrchr, ap_strrchr_c, ap_strstr, ap_strstr_c): Always declare. * server/util_debug.c (ap_get_module_config, ap_set_module_config, ap_strchr, ap_strchr_c, ap_strrchr, ap_strrchr_c, ap_strstr, ap_strstr_c): Always implement and export. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98903 13f79535-47bb-0310-9956-ffa450edef68
* Added the WindowsSocketsWorkaroud directive for Windows NT/2000/XPAllan K. Edwards2003-03-043-11/+58
| | | | | | | | to work around problems with certain VPN and Firewall products that have buggy AcceptEx implementations git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98890 13f79535-47bb-0310-9956-ffa450edef68
* Apache hooks return int: so s/apr_status_t/int/Stas Bekman2003-03-011-1/+1
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98860 13f79535-47bb-0310-9956-ffa450edef68
* fix some license text which was inadvertently lostJeff Trawick2003-02-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98843 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Avoid busy wait which consumes 100% of the CPU when all the workerBill Stoddard2003-02-261-52/+84
| | | | | | | | | | threads are busy. Submitted by: Igor Nazarenko Reviewed by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98804 13f79535-47bb-0310-9956-ffa450edef68
* check the return value of ap_run_pre_connection(). So if theStas Bekman2003-02-261-2/+6
| | | | | | | | | | | | pre_connection phase fails (without setting c->aborted) ap_run_process_connection is not executed. PR: Obtained from: Submitted by: Reviewed by: trawick, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98798 13f79535-47bb-0310-9956-ffa450edef68
* add a hint about handling of IPv4-mapped IPv6 addressesJeff Trawick2003-02-221-1/+6
| | | | | | | to the output of httpd -V git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98753 13f79535-47bb-0310-9956-ffa450edef68
* After consultations on the APR list, it was decided that /map files areWilliam A. Rowe Jr2003-02-201-4/+4
| | | | | | | | | | | | | | | | | | fairly redundant when you retain rich .pdb debugging symbol files. We have rarely used them, and generally .dbg and .pdb files prove much more useful for the cases we have. While eliminating /map files, we are also shrinking the size of the .dbg files by stripping 'private' symbol information. Really this means less rich diagnostics from Dr. Watson on NT or Win9x when they query the .dbg symbols in creating a DrWatson log file. But it's more than compensated for on newer OS'es where Dr. Watson will query the .pdb symbols, on all Win32 flavors when WinDbg is used with the .pdb symbols, and the fact that the distribution of binary symbols will use less bandwidth when less information is duplicated from the .pdb format into the .dbg files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98744 13f79535-47bb-0310-9956-ffa450edef68
* remove unused variable.André Malo2003-02-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98708 13f79535-47bb-0310-9956-ffa450edef68
* While processing filters on internal redirects, remember seen EOSAndré Malo2003-02-181-0/+10
| | | | | | | | | | | buckets also in the request structure of the redirect issuer(s). This prevents filters (such as mod_deflate) to add garbage to the response, because ap_finalize_request_protocol won't send another EOS bucket then. PR: 14451 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98699 13f79535-47bb-0310-9956-ffa450edef68
* Don't emit an error when there is no body.Justin Erenkrantz2003-02-171-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98695 13f79535-47bb-0310-9956-ffa450edef68
* Allow restart of httpd to occur even with syntax errors in the configJustin Erenkrantz2003-02-172-12/+26
| | | | | | | | | | | | | | | | | | file. (Out-of-date DSOs with bad MMNs will still be fatal unfortunately.) Add return parameter to ap_process_config_tree - OK on success, !OK on syntax error. We will no longer call exit() from ap_process_config_tree. The caller must exit if there is an error (makes sense anyway). This allows the initial start-up code to delay the exit until trying to let the signal_server optional function execute first. (The chances are that the syntax error isn't in the PidFile directive. If that happens, we'll try the default one. Oh, well.) PR: 16813 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98693 13f79535-47bb-0310-9956-ffa450edef68
* Rework ap_xml_parse_input to work with bucket brigades rather than doing allJustin Erenkrantz2003-02-171-24/+45
| | | | | | | | | of the unneeded copying associated with ap_get_client_block. PR: 16134 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98691 13f79535-47bb-0310-9956-ffa450edef68
* Rework the delete-exports target once more. Leave a comment there explainingJustin Erenkrantz2003-02-171-7/+15
| | | | | | | | why we have to be complicated. (Why make's dependency code doesn't catch this, I don't know.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98683 13f79535-47bb-0310-9956-ffa450edef68
* fill out parms->err_directive while looking for open parents.André Malo2003-02-151-1/+3
| | | | | | | | | | | | Otherwise when trying to log the error (a) we segfault (if the directive was in another file) (b) we show a wrong occurrence line number (start line of the previous container) or probably segfault, too (if no previous container exists). PR: 17093 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98671 13f79535-47bb-0310-9956-ffa450edef68
* Avoid passing too many characters to getenv. Make sure that only theBradley Nicholes2003-02-121-1/+3
| | | | | | | environment variable string is passed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98625 13f79535-47bb-0310-9956-ffa450edef68
* Fix an existing problem with error handling in piped_log_spawn().Jeff Trawick2003-02-101-11/+27
| | | | | | | | | | | | | Use new APR apr_proc_create() features to prevent Apache from starting on Unix* in most cases where a piped log program can be started, and add log messages for the other situations. *Other platforms already failed Apache initialization if a piped log program couldn't be started. PR: 15761 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98607 13f79535-47bb-0310-9956-ffa450edef68
* Make failing piped loggers work more like apache-1.3 byJeff Trawick2003-02-041-7/+3
| | | | | | | | | | 1) logging a message 2) trying to restart PR: 15761 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98576 13f79535-47bb-0310-9956-ffa450edef68
* finished that boring job:André Malo2003-02-0366-66/+66
| | | | | | | | | update license to 2003. Happy New Year! ;-)) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
* Enabled the -n parameter on NetWare to allow the administrator to renameBradley Nicholes2003-01-292-1/+11
| | | | | | | the console screen git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98535 13f79535-47bb-0310-9956-ffa450edef68
* Conditionally revert the otherchild logic from the WinNT MPM, based onWilliam A. Rowe Jr2003-01-291-4/+21
| | | | | | | | the APR_HAS_OTHER_CHILD flag from APR. This gets us building again on win32. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98531 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in echo statement.Justin Erenkrantz2003-01-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98519 13f79535-47bb-0310-9956-ffa450edef68
* Throw out export_files if exports.c is out-of-date as well.Justin Erenkrantz2003-01-281-2/+2
| | | | | | | | This should remove the requirement to run extraclean when we change a header file. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98518 13f79535-47bb-0310-9956-ffa450edef68
* Fix "Satisfy Any" logic. The access_checker has nothing to do withAndré Malo2003-01-281-6/+2
| | | | | | | | | auth_type. Related PR: 9076 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98516 13f79535-47bb-0310-9956-ffa450edef68