08e7e20e6491e2f1b7b764067d3de85699f7d8a2 1629927 |
|
07-Oct-2014 |
ylavic |
core: follow up to r1629925: new log tag |
6f2b40c28d377deb94c65a9787d8a1bf0de43078 1629925 |
|
07-Oct-2014 |
ylavic |
core: ensure that MPMs return an error on runtime failure and hence that
httpd's main process also exits with an error. |
cfd9415521847b2f9394fad04fb701cfb955f503 1612934 |
|
23-Jul-2014 |
rjung |
Add compiled and loaded PCRE version numbers
to "httpd -V" output and to mod_info page. |
316958920b9049edf5460731b57c97d9179ed55f 1547065 |
|
02-Dec-2013 |
trawick |
Fix module id in log messages issued from main.c
Submitted by: rjung |
0ee88ba2a6d937378d74839036b44172fe662b84 1534015 |
|
21-Oct-2013 |
niq |
Fix r1533728. Not a great idea to dereference process after pool destroy! |
135ddda3a989215d2bedbcf1529bfb269c3eda23 1533728 |
|
19-Oct-2013 |
niq |
PR 55670
Don't risk failing silently at startup when running in a tty. |
d895048e299b989d615724c030622516db98ae8e 1328345 |
|
20-Apr-2012 |
jorton |
* server/main.c (main): Bail out *before* signalling the server
if the config is bad. (as per the claim in the docs!) |
76dc5d8564a1a8216326849305a1fee7a64023da 1225197 |
|
28-Dec-2011 |
sf |
Adapt loglevel of config errors during second pass
Don't use APLOG_STARTUP since at that point, the error log is already
available. This gives us timestamps if these errors happen during graceful
restart.
Use level 'emerg' as these errors are fatal. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
25e14430fe769c71785a930266d8515766016028 1201354 |
|
13-Nov-2011 |
trawick |
Server directive display (-L): Include directives of DSOs. |
72b72a78f650d5e3e90f7f26174685d0a217e2c9 1200147 |
|
10-Nov-2011 |
trawick |
config generation # (reported by ap_state_query(AP_SQ_CONFIG_GEN):
* start at 0 instead of 1
* don't increment until after pconf cleanups run, in case a
cleanup needs to check the related config generation |
ec9c4ad7eb1d2ef94aedb2b180d9cf9312a639fd 1198930 |
|
07-Nov-2011 |
sf |
Only init the RNG once at startup. This saves some entropy and works around the APR bug
fixed in r1198921 |
67746e0d18eeceb247fc940148c9b4d358929643 1180681 |
|
09-Oct-2011 |
sf |
Add -D DUMP_RUN_CFG option to dump some configuration items
from the parsed (or default) config. This is useful for init scripts that
need to setup temporary directories and permissions, for example if those
temporary directories are located on a ram disk. |
675e4332325dd31c8188c23608828f69d30e9906 1180325 |
|
08-Oct-2011 |
sf |
Sort hooks twice, once before pre_config, once after ap_process_config_tree.
This fixes a regression with perl modules introduced by r1032002
PR: 45076
Submitted by: Torsten Foertsch <torsten foertsch gmx net> |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
3a59bb90be3bc6246632384c3d885b875ae507d5 1172686 |
|
19-Sep-2011 |
sf |
Add wrappers for malloc, calloc, realloc that check for out of memory
situations. Use them in most places where malloc, and friends are used.
This results in clean error messages in an out of memory situation instead of
segfaulting or silently malfunctioning. In some places, it just allows to
remove some logging code.
PR 51568, PR 51569, PR 51571. |
01d315c948a50cb511dbaee108b9571ee9a4d287 1087331 |
|
31-Mar-2011 |
jim |
Add in a configuration generation... this is independent of
MPM gen, just in case we ever switch MPMs at a graceful ;) |
2b2bb7447d50d7360bd3b8f0ca85105ba7c9ed16 1082170 |
|
16-Mar-2011 |
jorton |
* server/main.c (main): Use the real null cleanup callback. |
2880525b659da3bede26d5885da9bb40e97a9456 1080784 |
|
11-Mar-2011 |
sf |
Ensure that ap_server_conf always points to valid data or is NULL. |
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987 1070151 |
|
12-Feb-2011 |
sf |
Create new ap_state_query() function that allows modules to determine
if the current configuration run is the initial one at server startup,
and if the server is started for testing/config dumping only. |
bc52db6ff2c64d61c28b283bcb4b5ce2bc3349c6 1067483 |
|
05-Feb-2011 |
sf |
revert r1066944, r1067177 for now
breaks MacOS X and wherever this code will go, server/main.c does not seem to be the right place.
See
http://mail-archives.apache.org/mod_mbox/httpd-dev/201102.mbox/%3C01930193-8A3B-4635-9EB0-5EE31349E49C@jaguNET.com%3E |
e792fd52233d1d6bd4b01f443d2daf54d78c3a77 1067177 |
|
04-Feb-2011 |
jim |
Until this is fixed to link in lresolv, exclude. |
44dd2e4138fcec82d160677e2bd408be05eb3825 1066944 |
|
03-Feb-2011 |
sf |
Reload resolv.conf on graceful restarts
PR: 50619
Submitted by: Matt Miller <m miller f5 com>, Stefan Fritsch |
8fae12696bce44be9ce4c56888690cad8ac7b8f9 1032073 |
|
06-Nov-2010 |
sf |
Replace ap_expr with a parser derived from mod_ssl's parser. Make mod_ssl use
the new parser. Rework ap_expr's public interface and provide hooks for modules
to add variables and functions.
The Netware and Windows build files still need to be adjusted |
d5612bd28e194390b2c74fcf712d564b0e002684 1032002 |
|
06-Nov-2010 |
sf |
Fix hook sorting for the pre_config hook.
Move modules/http/config2.m4 back to modules/http/config.m4, since this was
only done as work-around in r88887 for the broken hook-sorting. |
39df0adc2645b06c814a9f48a2a948e054c42135 1004297 |
|
04-Oct-2010 |
fuankg |
Renamed optarg -> opt_arg to avoid name clashes with system-own optarg. |
bbbf5712d4fea2a5f2d610b7659a841fff1568de 987339 |
|
20-Aug-2010 |
trawick |
Fortify complains about an overflow of pad[], which would
require a mongo argv[0]. Get the vprintf formatter to handle
the padding and avoid creating the padding altogether. |
c051578acdaa891aaea7ab783090702014179ad0 956684 |
|
21-Jun-2010 |
sf |
add -X to usage message |
3f6b2cbc91ab9af040e4ab5239bc2123acb7e739 952783 |
|
08-Jun-2010 |
sf |
remove APLOG_USE_MODULE from main.c:
It causes build problems on Windows and the ap_log* calls in main.c
don't profit from it anyway, because there is no server_rec yet where
they could look up core_module's loglevel. |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
aa51f4b9e1f954f9c04d2728a0d7be01719fe0a1 905454 |
|
02-Feb-2010 |
sf |
replace duplicate code with new function ap_parse_log_level() |
fde6633c32d88dbb31062017d13fac616fce41e5 901557 |
|
21-Jan-2010 |
wrowe |
Design error; main.c is not part of the libhttpd, you can't forward
referrence storage like this. Move the variable allocation into the
ap_ library module. |
5c6592bb5a75208f1ccb7c999220d69fdf86ca2f 893542 |
|
23-Dec-2009 |
rpluem |
* With APR >= 2.0 there is no longer an APR-UTIL only an APR. |
ac7175cfcd14c0f1ac8d3d1cf2d39f154b236ce7 893044 |
|
22-Dec-2009 |
niq |
Strip SHARED_CORE deadwood.
PR 46239 |
1fdcfb04a08e53ce28af657d854922efbbabecf4 893027 |
|
22-Dec-2009 |
niq |
(re)-introduce -T commandline option to suppress documentroot check at startup
PR 41887
Patch by Jan van den Berg |
11f2c481e1d57bedb3f758565307501e9a2730dd 883540 |
|
24-Nov-2009 |
trawick |
Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,
and WatchdogMutexPath with a single Mutex directive. Add APIs to
simplify setup and user customization of APR proc and global mutexes.
(See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer
respected; set DEFAULT_REL_RUNTIMEDIR instead.
Some existing modules, such as mod_ldap and mod_auth_digest gain
configurability for their mutexes. |
f1f779c42f76118102fdecbe8777b47a1fc693a7 772356 |
|
06-May-2009 |
rjung |
Fix usage message on the Windows platform.
- do not include graceful commands and duplicate
start|restart|stop
- add ServerRoot to the parameters encapsulated by "-n" |
ff32c2e8bb4918d83fdad1182dcc26eeb88d28a5 762127 |
|
05-Apr-2009 |
trawick |
main() can use ap_run_mpm() directly, so axe the old ap_mpm_run() function
change the mpm hooks to return OK/DONE instead of 0/1 |
6e68ad13348b2b614939ae365470728026ff38be 760403 |
|
31-Mar-2009 |
trawick |
stop exporting APACHE_MPM_DIR to modules -- unclear why this was ever necessary, and it
makes no sense with loadable MPMs
axe the unnecessary MPM_DIR build variable
move the stray APACHE_SUBST(MPM_LIB) from configure.in to server/mpm/config.m4, where
the other MPM_foos are handled |
d372b017f6ab22d11bd54f7e643b089e29ef1dcd 758335 |
|
25-Mar-2009 |
trawick |
resurrect the call to show_mpm_settings(), but defer the entire -V processing until
after module loading if there is no built-in MPM
(we could just defer displaying the MPM info, but that would change the order of
output from what people/scripts expect) |
222834d5a33b915037094af014905f3683cae78b 758173 |
|
25-Mar-2009 |
trawick |
Provide ap_set_retained_data()/ap_get_retained_data() for preservation
of module state across unload/load.
The existing idiom used by modules to associate userdata with pglobal
doesn't work in the earliest phases of module execution.
(This does expose pglobal as an implementation detail, but it would be great
to unexpose it if at all possible (but modules already have access to pglobal
at almost all stages of execution anyway).) |
e6df620a7c1bd59b3032ecc98bbdc92ff826e69d 758065 |
|
24-Mar-2009 |
trawick |
set ap_server_conf as early as possible; axe the duplicate variable |
1e08691451a38410b81c55c40fe8555101443f50 758014 |
|
24-Mar-2009 |
trawick |
axe the remaining checks of AP_MPM_WANT_foo to see what code to generate
MPMs no longer provide those definitions
(the signal server support is an interesting problem, since it has to be known before loading
loading the MPM) |
dd028aa8111afb6534fece555e8c2d408894671e 757853 |
|
24-Mar-2009 |
trawick |
Introduce a new set of APIs to allow MPMs to be proper modules instead
of integral parts which share global variables, functions, and macros
with the rest of httpd.
Converted now:
prefork, worker, event, simple, WinNT*
*WinNT hasn't been built or tested, and relies on a hack to include the
WinNT mpm.h to disable Unixy MPM support routines in mpm_common.c |
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8 722399 |
|
02-Dec-2008 |
pquerna |
API Cleanup in preperation for 2.4.x, make sure all exported functions or variables contain an ap_ prefix. |
bdb31a2b2f48cb0bba977e2bdf9bb5d4e8b742e7 681204 |
|
30-Jul-2008 |
rpluem |
* Give possible piped loggers a chance to process their input before they get
killed by us. |
e04401c7f91d6fbfd3a2f5891351f84513e66e72 645540 |
|
07-Apr-2008 |
jorton |
* server/main.c: Unbreak the build. |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
a72211e92bab814bfa28ee086ca9b2a1a6095c92 644525 |
|
03-Apr-2008 |
chrisd |
Avoid calling access control hooks for internal requests with
configurations which match those of the initial request. Revert to
the original behaviour (call access control hooks for internal requests
with URIs different from the initial request) if any access control hooks
or providers are not registered as permitting this optimization.
Introduce wrappers for access control hook and provider registration
which can accept additional mode and flag data.
The configuration walk optimizations were originally proposed a while
ago (see http://marc.info/?l=apache-httpd-dev&m=116536713506234&w=2);
they have been used since then in production systems and appear to be
stable and effective. They permit certain combinations of modules
and clients to function efficiently, especially when a deeply recursive
series of internal requests, such as those generated by certain WebDAV
requests, are all subject to the identical authentication and authorization
directives.
The major change from the original proposal is a cleaner mechanism for
detecting modules which may expect the old behaviour. This has been
tested successfully with Subversion's mod_authz_svn, which specifically
requires the old behaviour when performing path-based authorization based
against its own private access control configuration files. |
a69ee2f93830df6b1270cb9b66ec1a03f6b43640 642971 |
|
31-Mar-2008 |
niq |
Flesh out ap_expr with:
* Re-usable parse trees
* Canonical string parser function (candidate) |
60d47432dcb44a5abcc70bc70e368163f1202d37 569934 |
|
27-Aug-2007 |
trawick |
make sure we Unix weenies get a newline at the end
of the message instead of our shell prompt
don't be overprotective of apr_ctime() by giving it
more memory than it requires or nuking a newline
which isn't there |
d9f4733ed6a815b20a10a94b8ad265bbfdc9dd21 569137 |
|
23-Aug-2007 |
wrowe |
Add a comment to prevent a future upgrade of APR 2.0 or similar
from inflicting new fatal errors on the startup error reporting. |
ec186f907a65387d1ed0448bc6c58382a325811f 568779 |
|
23-Aug-2007 |
wrowe |
main core: Emit errors during the initial apr_app_initialize()
or apr_pool_create() (when apr-based error reporting is not ready).
This moves apr_app_initialize() into init_process (and indirects the
argv/argc parameters for this function) since the same error logging
is appropriate to either failure.
Note the change of the internal name create_process to init_process,
since create_process means something very different in apr-land.
(Replaces the misapplied commit r568762, already backed out). |
d6d8c8f77fdb9eabc7b6e594023dfc7ca600a5ce 568778 |
|
23-Aug-2007 |
wrowe |
Revert r568762; will reapply in two segments |
9c4aba037521e63b2d92cf6c99aee8e94663e12b 568762 |
|
23-Aug-2007 |
wrowe |
Eliminate an XXX; apr-based file logging isn't available to report
failures of apr_app_initialize() nor the very first apr_create_pool. |
d9b12166875edee8979f2bd4ad3927e4ed7fdc4b 551835 |
|
29-Jun-2007 |
jorton |
Revert r547987 ("svn merge -c -547987 .") |
9b9334726d358fb55928f8073001209589d14da8 551163 |
|
27-Jun-2007 |
fuankg |
Block ap_pid_table create with same define as used in mpm_common.c |
a37803b5c687c0bfb99e49bd4b030fb40812774d 547987 |
|
16-Jun-2007 |
jim |
PID table impl: parent process keeps a local table store of
Apache child process PIDs and uses that to check validity
of what's in the scoreboard. |
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010 440337 |
|
05-Sep-2006 |
trawick |
Replace ap_get_server_version with ap_get_server_banner() and
ap_get_server_description().
High-level summary:
The full server version information is now included in the error log at
startup as well as server status reports, irrespective of the setting
of the ServerTokens directive.
Third-party modules must now use ap_get_server_banner() or
ap_get_server_description() in place of ap_get_server_version(). |
4bd465052c4a0c8d41e573ee7a90c312d980355f 431460 |
|
15-Aug-2006 |
chrisd |
Introduce a check_config phase between pre_config and open_logs,
to allow modules to review interdependent configuration directive
values and adjust them while messages can still be logged to the
console.
The open_logs phase is already used somewhat for this purpose by
certain MPMs (winnt, prefork, worker, and event) but only by forcing
their functions ahead of the core ap_open_logs() function, and
since this phase runs after the ap_signal_server function during startup,
it can not be used to generate messages on the console when restarting.
Add the check_config phase to mod_info and mod_example.
Handle relevant MPM directives during this phase and format messages
for both the console and the error log, as appropriate. Bounds and sanity
checks on the values of the MPM directives are handled in sequence in
this phase instead of in the various directive handling functions, since
those functions (e.g., set_max_clients()) may not be called at all if their
directives do not appear in the configuration files, and even if they
are called, there is no guarantee that this will occur in any particular
order.
Remove from the worker and event MPMs the code in the pre_config phase
that alters the configuration node tree by re-ordering ThreadsPerChild
ahead of MaxClients. This code is effective but insufficient; for
example, if ServerLimit follows MaxClients, the test against server_limit
in set_max_clients() is invalid. (In practice, this only results in
incorrect or absent warnings on the console, because server_limit is
set to its configured value when the main loop re-runs the configuration
process.)
Prevent ap_threads_per_child from exceeding thread_limit in the
winnt, worker, and event MPMs. This situation could occur if
ThreadsPerChild was not specified in the configuration files and
ThreadLimit was set to a value smaller than DEFAULT_THREADS_PER_CHILD,
because set_threads_per_child() would never be called and therefore
its bounds check against thread_limit would not be performed.
Remove from the winnt, prefork, worker, and event MPMs the
changed_limit_at_restart flag. Set the first_server_limit and
first_thread_limit values during the first execution of the check_config
function, and use them to detect changes to ServerLimit and ThreadLimit
across restarts and issue appropriately formatted warnings. Remove the
comments about the error log being a "bit bucket"; this was true when
the code was originally committed in r92530 but that was due to a bug
fixed in r92769.
Be consistent about setting all MPM configuration directive values in the
pre_config phase.
Rephrase and reformat the console and log file messages relating to
MPM configuration directives to be consistent across all MPMs. Use
briefer messages when logging to the error log than to the console.
Update miscellaneous stale comments and messages (e.g., reference to
daemons_min_free in worker and event MPMs, "prefork open_logs" in
winnt MPM, and StartServers in netware MPM).
The winnt, netware, beos, and mpmt_os2 MPMs should be tested by developers
with access to those platforms, especially the winnt MPM, which has
unique logic with respect to distinguishing between parent and child
processes during the configuration phases.
Update the English documentation for the worker MPM's ThreadsPerChild
directive, which no longer needs to precede other MPM directives in the
configuration files if it has a non-default value. The German (.de) and
Japanese (.ja) translations should be updated by developers fluent in
those languages. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
370c2c1823a41b1aeb07a2515774d03b2d781259 406953 |
|
16-May-2006 |
jorton |
* server/main.c (abort_on_oom): New function.
(create_process): Set abort callback for process pool.
(main): Set abort callback for global pool.
Reviewed by: colm |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
5950c42befb93e3915afaae38a69623c070e59b3 390573 |
|
01-Apr-2006 |
wrowe |
With all of the, uhm, interesting manners in which httpd
can be built and installed, let's ensure httpd -V gives the
reporter a chance to identify the APR flavor used to compile
and to run httpd when reporting bugs. |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
52e3d2373288a4015d4152067c124e4dc9876f08 265737 |
|
01-Sep-2005 |
trawick |
httpd.exe/apachectl -V: display the DYNAMIC_MODULE_LIMIT setting
(1.3 has done that for a while) |
4568a0bdaaa949e5f9e87668fe75d2ab8a954241 264886 |
|
31-Aug-2005 |
jorton |
* server/main.c (suck_in_APR): Remove weird gzeof reference which
broke all the -Werror builds. |
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8 263931 |
|
29-Aug-2005 |
ianh |
Doxygen fixup / cleanup
submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman |
09fe36356e0ba563c84f86f53a7cd9ba43f6ea9f 240296 |
|
26-Aug-2005 |
colm |
Move the "GracefulShutdownTimeout" directive into mpm_common, for re-use
with other MPM's. |
81bc29e61cebeb60fb967a133adc98ca99b60d7e 240269 |
|
26-Aug-2005 |
colm |
Make the neccessary changes to mpm_common and main to support a graceful-stop
command line argument. |
eed60bfcb280af9632ba3169fd3a4b792f9f2235 179879 |
|
03-Jun-2005 |
pquerna |
* server/main.c: Remove the suck_in_apr_password_validate() hack. apr_password_validate is part of the public APR interface and this hack should not be needed on any platform. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
cc7d8b55b16eee88be925a090473ca94b0a6e770 104685 |
|
17-Aug-2004 |
jorton |
Implement -t -DDUMP_MODULES using generic test_config hook rather than
hooking into mod_so from main.c:
* include/http_config.h, server/config.c: Declare test_config hook.
* server/main.c: Drop hooks into mod_so; run test_config hooks.
* modules/mappers/mod_so.h: Drop ap_dump_loaded_modules optional
function.
* modules/mappers/mod_so.c (dump_loaded_modules): Renamed from
ap_dump_loaded_modules; only run if -DDUMP_MODULES is defined.
(register_hooks): Register test_config hook instead of optional
function.
Reviewed by: Justin Erenkrantz, Paul Querna |
944fd48ac53d788e06dc7d5968b3d3a08ac1c17c 104249 |
|
12-Jul-2004 |
geoff |
fix compiler warnings |
1a986bbad9314beb8739401cac822e87bb04bbfe 104213 |
|
10-Jul-2004 |
pquerna |
Add DUMP_MODULES |
74239045b793236dab229b4fca06d8d00f8cbe24 104083 |
|
29-Jun-2004 |
martin |
Add OS and APACHE_MPM_DIR to -V output |
33a5f73d946d6980b77e49513665ac2afeb7ad35 103976 |
|
17-Jun-2004 |
geoff |
initialize server arrays prior to calling ap_setup_prelinked_modules
so that static modules can push Defines values when registering
hooks just like DSO modules can
Submitted by: philippe chiasson
Reviewed by: geoff |
03a3ed87983471816561562f957390ed935d7b3b 103517 |
|
25-Apr-2004 |
nd |
changed the following APIs to return an error instead of hard exiting:
ap_add_module, ap_add_loaded_module, ap_setup_prelinked_modules,
and ap_process_resource_config |
50e9530680a955a19ab0ddbd1bdf9c415ca99298 103182 |
|
29-Mar-2004 |
trawick |
Don't include newlines in strings passed to ap_log_error. |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
2af7ecf8c1589908aac793c154942d3cb3f6e492 102589 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
42f42902600a537b52a71e003d77a8ecbbb49ab0 102187 |
|
05-Jan-2004 |
martin |
PR: |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
e6146f2a84fedc02d0f32f3c915b124200fef6fc 102012 |
|
10-Dec-2003 |
jorton |
* server/main.c (suck_in_expat): Remove function, USE_EXPAT is never
defined. |
f23c50b3628a8571da2ff3277ae58ef1d675554f 101978 |
|
04-Dec-2003 |
trawick |
Clean up httpd -V output: Instead of displaying the MPM source
directory, display the MPM name and some MPM properties.
Submitted by: Geoffrey Young <geoff apache.org>
Reviewed by: Jeff Trawick |
3f0c977c190071270ea91972a7c41cd6ce24436b 101894 |
|
26-Nov-2003 |
trawick |
tidy up some charset recoding issues
the "need" for APACHE_XLATE went away some years ago when BUFF went
POOF and charset recoding (translation) of non-protocol data
could no longer be performed by the core... |
d8e2138596fca4cb63d2eb847ba4247edfd942d7 101196 |
|
08-Sep-2003 |
martin |
Documentation says -DDUMP_VHOSTS is equivalent to setting -S |
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9 101154 |
|
03-Sep-2003 |
trawick |
switch to APR 1.0 API (which is still in flux)
because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore |
107cfa3869d7cdce922ef44aacdd95af8990c706 98753 |
|
22-Feb-2003 |
trawick |
add a hint about handling of IPv4-mapped IPv6 addresses
to the output of httpd -V |
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6 98693 |
|
17-Feb-2003 |
jerenkrantz |
Allow restart of httpd to occur even with syntax errors in the config
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 |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
1944ddbbad413b60307d66081b022a3eee5f04cf 98535 |
|
29-Jan-2003 |
bnicholes |
Enabled the -n parameter on NetWare to allow the administrator to rename
the console screen |
93729af6a6565f0d8ca2b9a31ca078317ba841c0 97242 |
|
16-Oct-2002 |
trawick |
don't use deprecated function apr_sort_hooks() |
6877870166157351d5ec6ec71f30eef4d4781ecf 97120 |
|
07-Oct-2002 |
aaron |
Add -S as a synonym for -t -DDUMP_VHOSTS
Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Aaron Bannert |
a85f5f8fdb5c1fea6cc30f93d3e6acb9efbf6101 96827 |
|
15-Sep-2002 |
wrowe |
We log this failure (with an identical message) in the restart loop code,
there's no reason not to note it in the preflight pass. |
03d4bd1f300820885d35d51369c102d60db9ab5c 96092 |
|
17-Jul-2002 |
wrowe |
suck_in wasn't sucking hard enough. Fixed the header. |
b9a6cd6876c06fbf4fb717500ec718f400e9ded9 95871 |
|
23-Jun-2002 |
wrowe |
Doc it. |
3c5d9b7c70de5f02eeec889362955a948c224907 95618 |
|
12-Jun-2002 |
wrowe |
-T hasn't been supported for some great while. |
81dddb023f9dd43b350f782972c1f75a88a2d93f 95591 |
|
10-Jun-2002 |
trawick |
Fix the display of the default name for the mime types config
file.
PR: 9729
Submitted by: Matthew Brecknell <mbrecknell@orchestream.com>
Reviewed by: Jeff Trawick |
5a63340978acb9dd7e87724be57d2bde1cf1f629 95269 |
|
24-May-2002 |
trawick |
the "-k startssl" parameter is reverted by popular demand |
c7c3d91ec62bf7243880ac12b90f81507fa1ae83 95254 |
|
23-May-2002 |
trawick |
issue the usage message if there are extraneous arguments on
the command line |
9f7325ecad575cf77ab76b01beaaf339a63490b5 95237 |
|
23-May-2002 |
trawick |
Add "-k start|startssl|restart|graceful|stop" support to httpd
for the Unix MPMs. These have semantics very similar to the
old apachectl commands of the same name.
The use of stderr/stdout and exit status for error conditions
needs to be revisited. For now it matches apachectl behavior.
Justin Erenkrantz got the ball rolling with this feature. Some
of his support code was used unchanged. Other code was shuffled
around and modified or rewritten. |
b50175f08a07497cc18eeb7dd7d938f2da82296f 95236 |
|
23-May-2002 |
trawick |
fix a spelling error in a comment |
fe78134830535ab45c2d0406b2983281b63eb50f 95206 |
|
21-May-2002 |
aaron |
Omit the second linefeed after "Syntax OK"
Submitted by: Joe Orton <jorton@redhat.com> |
2d399cd7535887fceaa9f8f116eb98ce68ddd602 95149 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_?error() |
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6 94681 |
|
17-Apr-2002 |
wrowe |
Introduced -E startup_logfile_name option to httpd to allow admins
to begin logging errors immediately. This provides Win32 users
an alternative to sending startup errors to the event viewer, and
allows other daemon tool authors an alternative to logging to stderr. |
563fa6715f6ad5703d30354644d61968a8460804 94633 |
|
13-Apr-2002 |
wrowe |
Correct const'ness of argv in all support apps, and use the new
apr_app_initialize over apr_initialize for win32, and other platforms
that may wish to tweak 'apr-ized' application support (e.g. Netware?) |
a1be7357e2c08b9dfe52c277063d212d65b15fee 94434 |
|
04-Apr-2002 |
jim |
Added support for Posix semaphore-based mutex locking (AcceptMutex posixsem).
It's between pthread and sysvsem in the DEFAULT priority ranking. This
makes it the new default for Darwin, and adds support for it for other
platforms as well (like Solaris).
PR:
Obtained from:
Submitted by:
Reviewed by: |
dd0caa913bc3d4c28ea355b6b09916fcf94ca1fc 94160 |
|
25-Mar-2002 |
wrowe |
Integrate rbb's forward port of -k config into the -h(elp), and
reorder some directives in the -h(elp) so they 'flow'. |
53c730a66c715f07425aa38356b6a2e20d93312d 94140 |
|
22-Mar-2002 |
stoddard |
Tag some pools |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
51f9c50e4116dba10d9bf9bedf921272b88b9c9e 93813 |
|
09-Mar-2002 |
striker |
Style Police comming through... |
69945fc43fe06896d43a30049aca65374de53228 93656 |
|
01-Mar-2002 |
wrowe |
For fat-fingered friends and others who like typing err and warn rather
than spelling it out on the -e argument. |
d422afded535331acf04d9d085af7b9c03fdfb25 93440 |
|
16-Feb-2002 |
aaron |
This comment is bogus since we decided to keep -X.
Obtained from: Thom Park <tpark@borland.com> |
f3cb234a984bcfcb8e15b4b2e121196a3e0bd180 93240 |
|
05-Feb-2002 |
wrowe |
NOERRNO? Of course we have an ERRNO :) |
fe2f263728bae9d43e45c5b4ab20ade8ebea6b67 93224 |
|
04-Feb-2002 |
rbb |
This patch allows the prefork MPM to print messages to the console if it
can't open a socket for some reason. |
417f504d4d11631c0d062be85347f82a26c88677 93063 |
|
29-Jan-2002 |
aaron |
The pre_config hook now takes a return value. This allows modules to
cause the server to bail out under error conditions. |
56ee84931be318497a6b68e60f725b9b1ad48412 92893 |
|
17-Jan-2002 |
trawick |
get the declaration of strcasecmp() on AIX |
cb9e6e5c78f5a1690214e9548250fc6af1fc73b5 92891 |
|
17-Jan-2002 |
wrowe |
Allow the user to get detailed debugging information without a full
recompile [absolutely necessary on Win32 and other platforms that
really don't support administrator-compilation.]
-e level follows the LogLevel options.
The only question, should -e override the compiled-in default for
the creation of the server_rec? No strong feeling either way, here. |
6db9f96cc4e3bfe23dec565d0bbdb34027ce3515 92771 |
|
08-Jan-2002 |
dreid |
Restore the apr_pool_clear calls to main.c in case we have
third-parties who are overriding the open_logs hook, in which case
they'd miss the plog being cleared.
Submitted by: Justin <jerenkrantz@apache.org> |
a80e2c73608f28e2c986c93b77cf4074d09a5df2 92769 |
|
08-Jan-2002 |
dreid |
This small patch modifies the log's to use plog instead of pconf.
Basically pconf is cleared at different times from plog, and this
has the effect of leaving stderr closed when going into the next
stage of the config. This also had the effect of allowing FreeBSD
with threads to create a pipe with stderr's fd at one end, and this
resulted in problems with the signal polling and high cpu usage.
In addition, move the clearing of plog from main.c to core.c where
it seems more appropriate.
This solves the first and main problem that FreeBSD has with the
threaded MPM's. |
3b9c30f43e206065af414bea3a62b1fd7d762857 92519 |
|
18-Dec-2001 |
trawick |
tag a few of the key httpd pools |
d1227d216516ced66cb7ee651f2e63a3919b172a 92339 |
|
05-Dec-2001 |
trawick |
hmmm... gcc 2.95.2 on AIX says sizeof is long... fix up
a printf to always have a match between the format string
and argument |
869c6cadcb62868c157e5287dd422f32e622b670 92322 |
|
04-Dec-2001 |
trawick |
tweak httpd -V output to show the architecture (bits in a pointer)
and whether or not APR_HAS_SENDFILE is defined |
2f2f8f95cd565fb2e7fea031a6892734515549a4 92296 |
|
03-Dec-2001 |
ben |
Handle the ? option. |
957efc5c8f83a8a935524928287305802a5f0d47 92246 |
|
29-Nov-2001 |
wrowe |
Finish undoing that last patch... previous commit simply cleaned it up,
I was working with an unsaved verison when I pushed the button. |
76f61351c96034154c3586805b336a7e64f15bc2 92243 |
|
29-Nov-2001 |
wrowe |
Revert my last patch to detect a 'leftover' arg. Apparently there is
no way to distinguish between an extra arg, and a -x foo arg, or else
our getopt is broken at the moment.
I can't dig further into getopt right now, so this will wait for another
day or another hacker to resolve. |
8d52a49c73e351b410af467f9806e536e03f87dd 92241 |
|
29-Nov-2001 |
wrowe |
We never tested for invalid 'additional' arguments that were ignored.
Was there any point to allowing additional, unused args after the
various supported switches?
This prevents the Apache server from starting with an httpd somefooness
invocation. |
752ab911a1a7fd6ce297a5f38b80ad38cc70c8f3 92230 |
|
29-Nov-2001 |
dougm |
carry over from 1.3: disable profiling in the parent process #ifdef GPROF
PR:
Obtained from:
Submitted by:
Reviewed by: |
f9f506f0686ad065b4c6fe14dd962cdd478350db 92149 |
|
24-Nov-2001 |
ianh |
change open_logs hook to return a value, allowing you to flag a error
while opening logs
Obtained from: Doug MacEachern |
9d0665da83d1e22c0ea0e5f6f940f70f75bf5237 92144 |
|
23-Nov-2001 |
ianh |
Modify post_config hook so that it can return a error,
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully
PR:
Obtained from:
Submitted by:
Reviewed by: (Idea only Jeff Trawick) |
5e35e6072199fd6ec256524830757533b1f0676e 91178 |
|
28-Sep-2001 |
wrowe |
Debug conf pool constness. This is a noop most of the time on most
platforms, but it's only called twice per restart, so this is mostly
harmless. |
d6a93816bfaa5b3de5f2e6cb0d172cbe20dd056e 90824 |
|
30-Aug-2001 |
jerenkrantz |
Add -X functionality back to httpd.
- Updates upgrading.html
- Reverts Aaron's earlier docco patch (sorry...)
- Adds -X to all mpms in the tree |
864c5615d55b8ebbde24e72043f6325741335a74 89198 |
|
22-May-2001 |
fielding |
Moved util_uri to apr-util/uri/apr_uri, which means adding the apr_
prefix to all of the uri functions (yuck), changing some includes,
and using APR error codes instead of HTTP-specific error codes.
Other notes to test this patch:
- You need to delete the util_uri.h file - exports picks up on this.
- I'd like to remove the apr_uri.h from httpd.h, but that might
increase the complexity of this patch even further. Once this patch
is accepted (in some form), then I can focus on removing apr_uri.h
from httpd.h entirely. I need baby steps (heh) right now.
- I imagine that this might break a bunch of stuff in Win32 or other OS
builds with foreign dependency files. Any help here is appreciated.
This is a start... -- justin
Submitted by: Justin Erenkrantz
Reviewed by: Roy Fielding |
342e2ae0f9ab3e3a56c2f37be6ec6c9c44f9ef48 89150 |
|
18-May-2001 |
trawick |
Fix command-line processing so that if a bad argument is specified
Apache will exit. |
1389bdc5486b5fd2281741849c6bdf47e671f26a 88716 |
|
04-Apr-2001 |
orlikowski |
Module writers for 2.0 shouldn't still be relying on a no-op for
compatibilities' sake. Let's kill ap_util_uri_init, since it serves no
purpose now. |
0e4249c46439b33a7f18e1a0c0354d49879b14eb 88296 |
|
24-Feb-2001 |
gstein |
clean out some old crud from ap_config.h |
56ed3e7e5a5032e0a3d31ec5cf0438cc1b88f3b4 88291 |
|
23-Feb-2001 |
dougm |
remove ap_{post_config,child_init}_hook
replace usage with ap_run_{post_config,child_init}
PR:
Obtained from:
Submitted by:
Reviewed by: |
29aab783a69e26575bd56df5d260ae43a0b1a5fb 88261 |
|
21-Feb-2001 |
martin |
Oops - better *think* first. Fix typo.
PR:
Obtained from:
Submitted by:
Reviewed by: |
78607fca9a67c32ac85ccb5dd1a95b788ede0b2c 88260 |
|
21-Feb-2001 |
martin |
Display APACHE_MPM_DIR in the list of #defines, and
remove the duplicate APR_HAS_MMAP test. |
53bb9198689cfcc08182c9bb27005368bcba42a2 88232 |
|
19-Feb-2001 |
dougm |
rename miss: s/apr_clear_pool/apr_pool_clear/g |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
7c7372abe2484e7fcf81937b93496d1246e5b816 88103 |
|
12-Feb-2001 |
gstein |
*) remove some obsolete/unused defines from httpd.h.
*) remove DEFAULT_XFERLOG from main.c; it is never set/used
*) move ap_get_max_daemons() to ap_mpm.h
*) move DEFAULT_LISTENBACKLOG to mpm_common.h |
1b21d7b3d97def358b2e923655edeb16613a1c31 88060 |
|
10-Feb-2001 |
gstein |
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't
- use apr_want.h where possible
- use APR_HAVE_ where possible
- remove some unneeded includes |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
4783bc116b4dc37deadcc0b68ce3d3eeb6a7464a 87868 |
|
27-Jan-2001 |
ben |
Add support for type-safe optional functions. |
32040160763b40d9f026726c58424d60b35a46ec 87776 |
|
21-Jan-2001 |
rbb |
Back out the last change (the one that went in without a commit log)
I thought this change was necessary to stop reporting the SERVER_VERSION
twice. In reality, the apr_hook_deregister_all() call in
ap_clear_module_list solved that problem. |
53eef2a6b831596f90809e7ae07ae17d0ae107e5 87775 |
|
21-Jan-2001 |
rbb |
PR: |
b980ad7fdc218b4855cde9f75a747527f50c554d 87731 |
|
19-Jan-2001 |
wrowe |
The big change. This is part 3 of the apr-util symbols rename, please
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed. |
5bb5dcb58168642439dd227d24c708a266943fb2 87699 |
|
17-Jan-2001 |
wrowe |
Provide apr_pool_t arg to register_hooks, since anything they do in that
step -must- be done with a pool that will not outlive the cmd pool, from
which they may have been dynamically loaded.
This needs further review, it's committed only as a stopgap for those
who's builds I broke, sorry. Review tbc late this evening. |
18b197c6ba1d5b8bb5b2fb372ef752f87e56912a 87583 |
|
04-Jan-2001 |
trawick |
Set up stderr logging explictly early in initialization so that a pool is
available for creating the APR representation of stderr. |
c4ad483abb132fd413aead2df8715aa479559a37 87564 |
|
01-Jan-2001 |
rbb |
Remove AP_USE_MMAP_FILES, it doesn't really control anything anymore. Now
we just use APR_HAS_MMAP directly, just like APR-util does. |
db3fa7db7c7910f2f23c3e3ffe0cf9f41a1899b9 87460 |
|
20-Dec-2000 |
trawick |
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro. |
886cd69ebf69e990dbc365be87ff8ea7cd681904 87424 |
|
19-Dec-2000 |
rbb |
Force all Apache functions to be linked into the executable, whether they
are used or not. This uses the same mechanism that is used for APR
and APR-util. This may not be the correct solution, but it works, and that
is what I really care about. This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes
the exports script a bit easier. |
bbbf8f0e622ad5a37ccf70f35660fc755575278a 87391 |
|
17-Dec-2000 |
rbb |
Get -t -D DUMP_VHOSTS working and properly documented. This removes the
-S option from the docs. |
3ac27a4a113ee494d539f3740e3dd4c646dbc518 87368 |
|
16-Dec-2000 |
trawick |
Display whether or not APR (and thus Apache) supports IPv6 in the
httpd -V output. |
f74992d6cec021894c8f759532d4540810d525f3 87249 |
|
07-Dec-2000 |
gstein |
*) fix up buildexports.sh:
- enable it to be run from any dir by passing a parameter for the
location of srclib, and using its own location for determining where
the AWK script is located
- accept exports files on STDIN, and produce output on STDOUT
- use "pwd" and cd back to it, rather than assuming ../../.. (which might
not apply if we feed it other export files)
- add USAGE reporting
*) generate exports.c during normal build of "server" rather than during the
buildconf stage. update invocation to match above changes
*) revamp the ap_ugly_hack referencing in main.c: put it at the bottom of
the file with the other, similar references, and style it similarly.
*) remove the ap_ugly_hack declaration from http_main.h; it is internal to
the "server" code |
649ab77e5360f9dd4f474156136ffc712fbb2a57 87143 |
|
01-Dec-2000 |
trawick |
Add "-D PROCESS_LOCK_IS_GLOBAL" to the httpd -V output when
appropriate. |
50cf9b8da68bea71ce5a49b4cb4be3be516486bd 87130 |
|
29-Nov-2000 |
gstein |
Use "const char * const *" for process->argv (which is the correct
const-ness since we sometimes put "some string" in there, and also the CRT's
argv). propagate this change within http_main and mpm/winnt/ (also correct
some other const type usage within the MPM).
fix ab's call to parse_url() which removed a const to actually manipulate an
arg from the CRT's argv (indirectly via opt->arg). no idea how this has
avoided segfaulting. |
cccd31fa4a72fe23cc3249c06db181b274a55a69 87080 |
|
26-Nov-2000 |
gstein |
*) Compensate for recent changes in the APR headers. Specifically, some
files need to specifically include stdio.h, or a particular apr_*.h
header.
*) Adjust callers of apr_create_process() to deal with the extra "const"
*) Add "const" to args of ap_os_create_privileged_process() |
b1d49d684de3cfc0445beaabfa79ef176d05d81a 87009 |
|
18-Nov-2000 |
wrowe |
Extern symbols (per the warning) belong elsewhere, since (on Win32) the
http_main.c is both the startup and entry stub. |
69b3b88588e73701b14b6e925dedb339869fb12a 86948 |
|
14-Nov-2000 |
rbb |
Port mod_info to 2.0. This is basically a complete re-write to use the
config tree instead of re-reading the config file. As a part of this
change, the config tree needs to be exposed to modules as ap_conftree.
Submitted by: Ryan Morgan <rmorgan@covalent.net>
Reviewed by: Ryan Bloom |
4901fcc69722d3d20810610dbdac755b4b75f618 86939 |
|
13-Nov-2000 |
rbb |
Fix type complaints on Xlc.
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net> |
f8b43bf5b8fc8fb5058d6fe2e65d14616c7200d6 86802 |
|
02-Nov-2000 |
rbb |
Create a feature macro that determines if Autoconf was used to configure
the server. The ap_ugly_hack variable is only valid if Autoconf was used
for the configuration. |
8337ec3118c6775de157ac063a88f093a1dea630 86796 |
|
02-Nov-2000 |
wrowe |
Get win32 building again... we need something just a little more sophisticated here
Submitted by: John Sterling <sterling@covalent.net
Reviewed by: rbb, wrowe |
21ea187b2f877f7fae0b471b211a5c728424da7e 86770 |
|
31-Oct-2000 |
rbb |
This is an ugly little hack to allow DSO modules to work. This basically
forces Apache to link in all of the APR functions whether they are used
by any static modules or not. |
7646be5b9ab5b098bc81d3a08a47e1931dc87597 86661 |
|
19-Oct-2000 |
rbb |
Namespace protect the rest of the macros defined by ap_config.h |
74a441a5905f556d2ec7b74b7c7b01b2a0f3eaea 86149 |
|
26-Aug-2000 |
dreid |
Remove a needless cast.
Submitted by: Victor J Orlikowski <v.j.orlikowski@gte.net>
Reviewed by: dreid@apache.org |
347f8193377b3610632ff0fe54d1a25810f60564 86035 |
|
09-Aug-2000 |
wrowe |
Provide the first real-world update for the new apr_initopt/apr_getopt
changes.
PR:
Obtained from:
Submitted by:
Reviewed by: |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by: |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
b6055b7832a0e4d0818416252fff5925aaebae4b 85867 |
|
21-Jul-2000 |
rbb |
Move all APR functions related to strings to their own directory, and
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories. |
be0e6ea9b4676d85da9cde63fa9ae443d1560f54 85821 |
|
12-Jul-2000 |
stoddard |
#ifdef APR_HAS_OTHER_CHILD to #if APR_HAS_OTHER_CHILD. Not tested. |
fb0c14f07aa634d66663d85fa621c99a53bc74e4 85522 |
|
12-Jun-2000 |
trawick |
Fix a couple of problems with the pre/post config processing changes:
1) symptom: on system with bad/no DNS setup, ServerName isn't
processed so init fails
cause:
ap_fini_vhost_config() called before ap_process_config_tree(), so
ServerName was never stored in the config structure
2) symptom: on system with virtual hosts configured, SIGSEGV in
open_multi_logs()
cause:
the module configs for the virtual hosts haven't been merged in
yet, and open_multi_logs() gets NULL for the mod_log_config
configuration
This stuff needs to be cleaned up further, exploring the use of a
post-config hook for fixup_virtual_hosts(), ap_fini_vhost_config(),
and ap_sort_hooks(), getting a lot of logic out of main(), and
processing the config tree only once. |
264110a4c12b0384d2bca8ad79e3b5264d79415f 85501 |
|
10-Jun-2000 |
rbb |
Cleanup more of the Apache configuration. This removes all of the shared
memory checks, because Apache relies completely on APR for shared memory
support. In doing this, we also need to know how APR/MM are providing
our shared memory (ie file or memory) that requires the change made to
APR's configure script that was just committed. |
da61a7ee603c178e6b78ed89c90e6d0fe9e6a111 85499 |
|
10-Jun-2000 |
trawick |
httpd -V now displays APR's selection of the lock mechanism instead of the
symbols previously respected by prefork. |
87e0da4e1eabf35b0b2a48a9290c5e725854de8f 85463 |
|
08-Jun-2000 |
rbb |
Remove all occurances of gettimeofday. Replace it with ap_now which
provides the same function but works cross-paltform. |
bcdc8e0b30a73eb30244d66010dbe3233ac755ae 85430 |
|
06-Jun-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Unbind the old main_win32.c code and rebind to the new mpm logic
in the modules/mpm/winnt directory. Includes some simple cleanups.
The old sources in os/win32 will disappear at the end of this week. |
543d682d2aedf7342a519ea303f9f32463fbef80 85393 |
|
03-Jun-2000 |
rbb |
Modify the config order so that we read the config, process all EXEC_ON_READ
directives at the same time, run pre_config hook for all modules, and
then walk the tree. This allows all modules to have a pre_config hook and
know that it will be called at a reasonable time. I also made "Include"
an EXEC_ON_READ directive so that it is included in the tree properly.
This was required after the other changes that were made. |
b28574227fcf956444ac03bde294122a05ad2bde 85361 |
|
01-Jun-2000 |
rbb |
Remove a warning when compiled with --use-maintainer-mode. Basically,
process_rec should just be storing argv the same way that getopt
expects it. |
360246c849a9c4798008a645239efd54fca1ef99 85354 |
|
31-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
How, precisely, was Apache going to do anything with rewritten args ;-?
+1 on my personal oh-duh tally for the weekend. |
b106caca3fd6b9224f8ae57386e75906aa76525b 85340 |
|
29-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
One last precursor to the common code base for Win32 rewrite_args from
it's MPM. Since we need to walk the arg list... why maintain it in
several places. This patch adds the AP_SERVER_BASEARGS definition to
the header, so any mpm (and mod_info, for example) can know what args
are legitimate, even when they plan to ignore them. |
870fc5cef199b3accf527d514ecc873eb6efe057 85326 |
|
28-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Finally a patch that can't (well, shouldn't :-) break any other platform.
Open up the symbols defined for http_main.c to move main() from the core
under Win32 (that's the real main(), not that apache_main() thing).
Win32 Project file changes will follow in a seperate patch. |
ea59c023eb991c0195fe9c7cc858edbc0e7b81ea 85321 |
|
28-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Document the lack of exports so http_main.c stays that way,
as suggested by Greg Stein. |
bdba7671dcde236a017aa97bd09a2f80057a8c5e 85312 |
|
27-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Cleaning up. Note that apache (or https) -D DEFINE is now enabled, the
shared data is now properly moved to either ap_hooks.c or http_config.c,
and all should be well with rewrite_args.
Next stop, no more apache_main entry point. That's why this file needs
to be empty of any callbacks or shared data, as it will bind to the core
but the core won't be looking back into http_main. |
3a40b7d82613e316950b86018a6d09b1605697a2 85311 |
|
27-May-2000 |
wrowe |
Pass the process_rec to the MPM to allow rewriting of the args list.
Especially necessary under Win32, or other non-unix front ends where
oddball arguments might be required, but without causing a mess in
http_main.c. |
323b07255d036c772cd94eb17fed35c035427901 85248 |
|
18-May-2000 |
trawick |
Add "-D APACHE_XLATE" to the output of httpd -V when APACHE_XLATE
is defined at compile time. |
56ebfcabd65871a354b7ad418d764281868825bc 85235 |
|
17-May-2000 |
wrowe |
Radical overhaul of the Apache-2.0/Win32 mpm <-> service schema.
1) Services and Registry are not part of the core Apache operations,
so registry.c and service.c are moved into Apache.exe - assuring
the service control layers of NT and 95 are truly isolated.
2) Isolation can't be complete, we need to know when the mpm is
fully initialized. A new pointer to a no-arg function returning
void is provided for this purpose, ap_mpm_init_complete. It is
only called if overridden with a non-NULL value prior to invoking
apache_main.
3) Control+C, Control+Break are handled on both WinNT and Win9x.
4) The window close, logoff and shutdown events are handled on WinNT.
5) The beginnings of a Win95 service startup are provided, -k startservice
but this is horribly incomplete since Win95 will NOT report shutdown. |
1f728f035fca81594193e198b40bfa732b1c02eb 85171 |
|
09-May-2000 |
trawick |
generic EBCDIC support code, changes to rfc1413.c to use APR
translation in its EBCDIC support |
7f1290cbf118bf3d34aecc68cff2e5bd0a23e126 85136 |
|
04-May-2000 |
rbb |
Make reliable piped logs work on 2.0. |
404e2e1f8ad30c2d996f5fb6b3a9a4a4a14a004b 84963 |
|
14-Apr-2000 |
rbb |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. |
f45b17d6bf6de6acf28b35f222d4c590703258ac 84961 |
|
14-Apr-2000 |
dgaudet |
more namespace cleanup |
7e79e8fd53348f9fc6e8009a4a2522425ab6f08f 84878 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
3329f7438b6b9a05145df81f695633a54265742c 84864 |
|
30-Mar-2000 |
rbb |
Fix the warnings associated with the pre_config patch. |
62167363bf04c4df7b6a055c6143552212ffcee3 84862 |
|
30-Mar-2000 |
rbb |
Put the pre_config hook back into the table. This solves the problem of
the pre-config hook only being valid for MPM's. This patch also
distinguishes between STANDARD modules and MPM's. |
a57ee51d37eaa7d8627c9d6593be5f40e7c5841c 84846 |
|
29-Mar-2000 |
trawick |
Tweaked APR initialization and termination so that the lifetime
of memory management mutexes is longer than the lifetime of
managed memory. APR apps must now call ap_terminate(). |
d6d7a37600a182e98bc7d5607a92e50cbc429c92 84828 |
|
23-Mar-2000 |
ake |
Clear hook registrations between reads of the config file.
When DSOs are unloaded and re-loaded the old hook pointers may
no longer be valid. This fix eliminates potential segfaults. |
af0157cea9fdd5c1d077b0e2e19aa33086004386 84822 |
|
22-Mar-2000 |
trawick |
axe code to print "-D MULTITHREAD" for apache -V; MULTITHREAD
is a 1.3 hangover;
exit with a log message if ap_create_context() fails when
creating the initial context; otherwise, we SIGSEGV later |
6faff19112acbfe7dedc61623e7225e05fae0a94 84771 |
|
16-Mar-2000 |
manoj |
Eliminate implicit usage of access.conf and srm.conf. |
0d8f4aaec0aebd00ce979a65c8e1a9e76c4c896f 84768 |
|
14-Mar-2000 |
dreid |
This gets the server working again after Ryan's order change for
ap_getopt. |
64185f9824e42f21ca7b9ae6c004484215c031a7 84725 |
|
10-Mar-2000 |
rbb |
Fix all the License issues. Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license |
f9542a81b6da32d780c21b7c234b6198dd8ba4fb 84677 |
|
28-Feb-2000 |
rbb |
Remove second ap_initialize left over from previous patch.
Submitted by: Jeff Trawick
Reviewed by: Ryan Bloom |
471250b208b2fa6a0c8f2dcf383fa0b86a6ac8be 84661 |
|
23-Feb-2000 |
stoddard |
2.0 builds, but dumps core on FreeBSD 3.3 (ap_lock).
Basically, ap_initialize() needs to get called before create_process(),
since create_process() passes op_on structure to semop() to get a lock, but
op_on isn't initialized until ap_initialize() calls setup_lock(). Here is
a slight rearrangement to main() which calls ap_initialize() earlier...
Submitted by: Jeff Trawick <trawick@us.ibm.com>
Reviewed by: Bill Stoddard <stoddard@us.ibm.com> |
dc24e0f321348a3441eeb04b0fb952780a686943 84620 |
|
14-Feb-2000 |
stoddard |
Rework the code to handle apache -k shutdown|restart. The fundamental problem
being solved here is determining the best way to discover the Apache
parent process PID (stored in the location specified by the PidFile directive).
This patch attempts to read the config file directly to determine the
pidfile and avoids going through the motions of calling all the module initialization
routines.
This patch will not work if the pidfile directive is in a file pointed to by
an include directive. Not sure is this is a common case or not on Windows.
If it is, it is easy enough to add a bit more code to follow include
directives. An interesting modification would be to detect the presence of a \
-C directive containing a pointer to the pidfile: E.g.,
apache -k restart -C "pidfile d:/mypidfile". Let's keep it simple for now and
see what happens. |
77580c991cfe89861e72af52c184028a7a67d87a 84566 |
|
03-Feb-2000 |
rbb |
APR requires that ap_initialize is called as one of the first functions.
It sets up the rest of the APR types. This was causing lockups whenever
we tried to us an APR lock. |
2d71630471d1c23f0137309e3c3957c633ecbfd6 84531 |
|
28-Jan-2000 |
rbb |
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is
defined correctly in all C files. |
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44c 84493 |
|
19-Jan-2000 |
rbb |
Finish the commits for the change in the header files. Basically, this hides
all of the Apache macros that modules don't need access to. This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by: Manoj Kasichainula and Ryan Bloom |
25d351a912d29182f7f279ea2897951bcda70b61 84342 |
|
20-Dec-1999 |
stoddard |
Get rid of the C++ style comment. |
c04fb44815c487bd23bfe2dd0dcc6133fc751305 84341 |
|
20-Dec-1999 |
stoddard |
Handle -k restart|shutdown command line option from http_main.c |
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20 84200 |
|
01-Dec-1999 |
manoj |
Eliminate ap_config.h's checks when using autoconf. Now, ap_ac_config.h
is used instead, and autoconf's configure script will check for
everything else. |
f098907ce510d41ebac1dce646677370e16843d6 84143 |
|
22-Nov-1999 |
rbb |
Clean up the getopt stuff a bit. Basically, I am removing the #define's,
and changing the names in the getopt.c file so that we are sure there is
no namespace collision between regular getopt's, and APR's getopt. |
c30e4f4f032a6d230305f31aea125445ae890541 84142 |
|
21-Nov-1999 |
martin |
Use APR's getopt |
2b484455736f4c30447aa852764f53282cbeb5dd 84134 |
|
19-Nov-1999 |
rbb |
First step in removing the fprintf(stderr problem from Apache. Basically,
I defined APLOG_STARTUP, which refrains from printing the date string
and the log level information in log_error_core. I then changed all the
fprintf(stderr calls to ap_log_error, and used APLOG_STARTUP.
log_error_core on Unix takes care of creating a log file and directing
it to stderr if a log file isn't already active. I will continue to
make these changes tomorrow. Currently, the main code and the dexter
mpm have been modified. |
03dffacb5120bf6f762ac78ba8271e7dacee16ee 84110 |
|
08-Nov-1999 |
stoddard |
Get rid of dependency on os/win32/getopt.c & .h |
31f305386f2f12634076d27305fc376954b6a125 84006 |
|
19-Oct-1999 |
bjh |
Use APR's getopt. |
321cfbd5223103257c6e98361403e221b6e2e65c 83987 |
|
13-Oct-1999 |
bhyde |
Remove all but one WIN32 from http_main. Other minor changes. |
40c2964792533dfeedca739fa5617416d5f644e7 83969 |
|
12-Oct-1999 |
martin |
Fix typos |
f77cbf0cd7b2fe7199491e8fe4861708d3e631d0 83945 |
|
07-Oct-1999 |
martin |
ap_server_argv0 was undefined. Use a simple default (basename(argv[0])) |
856cd04dde6122606dffc1c3c11200cdb1ea146e 83943 |
|
07-Oct-1999 |
bhyde |
Well this was thought provoking.
Drive out the use of malloc in two places.
In listen.c, using the global process pool instead. That changes the
API into listen so that a process is passed in rather than the config
pool. That's all was easy.
The pain is propogating a change into all N of the mpm, they
are all similar but different in their use of listen.c There
is a lot to dislike about similar but code scattered code.
I changed the N setup_listener routines, they now take only
the server since they can dig the config and global pool
out of there.
Free today: ap_setup_prelinked_modules now takes the process so it
can allocate it's table in the process's pool rathern than use
malloc. |
3887202241db08986e94b252fbd06a55e55d4b2d 83942 |
|
07-Oct-1999 |
bhyde |
Add process_rec to the top of {server,connection,request}_rec
hierarchy of structs that abstract server activities. Store some
stuff in process_rec (finally a place to have nearly guiltless
globals) for example the global and configuration pools. Put some
operations on process_rec in http_main, in particular the
destroy_and_exit operation, and the use it to do all the exit calls.
Change ap_read_config to operation on this "object" rather than on the
configuration pool. Modify server_rec to point to the process, so you
can get at it most all the time which should finally allow most of the
server's malloc calls to be eliminated.
There are no locks in the process struct as yet, put them in as needed.
Some of the hooks should take this rather than conf. pool. |
710add727e17344491a6ff565e357c1abfbb28a4 83941 |
|
07-Oct-1999 |
bhyde |
Duh. |
a3e1906105a42ad0337f2a64691d63586f5f0524 83940 |
|
07-Oct-1999 |
bhyde |
Changed my mind, ptemp maybe "systolic" but since it is empty
during the entire time the server is serving it's best to destroy it. |
86b535ee123402fc9186efdf7f67b3e6915545e3 83939 |
|
07-Oct-1999 |
bhyde |
Man! This file vastly improved. Thanks Dean!
Use the abstraction API_EXPORT_NONSTD for exporting main (aka
apache_main). Use clear rather than destroy on ptemp as other
'systolic' pools do. That also fixing a leak of the first ptemp
created. Let the destroy of pglobal to all the cleanup. Meanwhile,
all exit paths should destroy pglobal so the cleanup/unwind gets run
and this routine sets a bad example by having many exits that don't -
another day.
PR:
Obtained from:
Submitted by:
Reviewed by: |
9fc4cd65587bea7b5a4dd570f4e191a34c7685c8 83936 |
|
06-Oct-1999 |
bhyde |
Remove obsolete ap_util_init function. |
d936d7dcfc1a35dec2a026d23053f8230301cdff 83927 |
|
04-Oct-1999 |
rbb |
First patch to re-order function parameters. This one gets the low hanging
fruit, and moves most of the result parameters to the first argument.
Future patches in this series will move the rest of the result parameters
to the beginning of the list, and will move the context's to the end of the
list |
9e367f2ac1cbf6b88917e895947c79fe48f6607e 83901 |
|
14-Sep-1999 |
rbb |
A change to how APR uses user data. Now, user data is a linked list that
is retreivable using a char string. Basically, you provide a string that
will be used as a key when you store the data. If the key was used before,
we will overwrite the old data. When you want to retreive your data, pass
in the same key, and we will find the data you care about. This also makes
it harder to put user data in when creating a context, so that option has
disappeared. It is also impossible to inherit user data from parent contexts.
This option may be added in later. I will be documenting this VERY soon. |
e1ba90a31f7b6cf7d529920f489d0bf07a3929f6 83892 |
|
11-Sep-1999 |
ben |
Really get rid of unused options. |
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697 83852 |
|
31-Aug-1999 |
rbb |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly. |
1f7304049276b89d748693b713f84e4b69acac18 83836 |
|
28-Aug-1999 |
rse |
Make ``configure --with-option=devel'' under
GCC 2.95.1 happy by avoiding various warnings... |
83bee7f569bee7534741915e173e6a7de9ddae81 83822 |
|
28-Aug-1999 |
stoddard |
A bunch of changes to get the server compiling on WIN32. mod_cgi, mod_include,
mod_isapi and mod_so don't work so I am not making them. Moved a lot of code out
of multithread.* and into os.* (didn't want to add multithread to the new repository).
Much of this can be cleaned up when APR is stable.
And Dean's gonna but me for sure for the http_main hit. It's may be
possible to name a DLL entry point 'main()'. Just havent tried it yet.
Enjoy! |
2e123e8beedc9f921448c113e2d6823a92fd5261 83763 |
|
26-Aug-1999 |
fielding |
Rearchitect the mess in http_main.c, http_core.c and buff.c.
Basic restructuring to introduce the MPM concept; includes various
changes to the module API... better described by docs/initial_blurb.txt.
Created multiple process model (MPM) concept by ripping out the process
guts from http_main.c and http_core.c and moving them to separate files
under src/modules/mpm/
Moved socket creation stuff to listen.c.
Moved connection open, maintenance and close to http_connection.c.
I/O layering and BUFF revamp. Much of buff.c moved to ap_iol,
iol_socket, and iol_file. See docs/buff.txt.
Moved user and auth fields from connection_rec to request_rec.
Removed RLIMIT stuff, supposedly to be implemented later in mod_cgi.
Disabled suexec, supposedly to be reimplemented later.
Submitted by: Dean Gaudet |
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1 83750 |
|
24-Aug-1999 |
fielding |
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group |