config.c

Checkout Tools
  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
config: Speed up graceful restarts by using pre-hashed command table. PR 64066.

[Giovanni Bechis <giovanni paclan.it>, Jim Jagielski]

  1. … 1 more file in changeset.
Be a little more verbose when an error in trigerred in 'ap_set_file_slot()'
Follow up to r1847430.

- These flags are not for apr_dir_ function. Clarify comment.

- Initialize 'depth', especially when AP_DIR_FLAG_RECURSIVE is explicitelly required.

- Avoid an harmless over-allocation .

  1. … 2 more files in changeset.
core: Split out the ability to parse wildcard files and directories

from the Include/IncludeOptional directives into a generic set of

functions ap_dir_nofnmatch() and ap_dir_fnmatch().

  1. … 5 more files in changeset.
Axe some dead code.

See PR 60086.

core: silently ignore a not existent file path when IncludeOptional

is used.

In https://bz.apache.org/bugzilla/show_bug.cgi?id=57585 some use cases

were reported in which IncludeOptional seems to be too strict in its

sanity checks.

This change is a proposal to relax IncludeOptional checks to silently

fail when a file path is not existent rather than returning SyntaxError.

  1. … 2 more files in changeset.
config: follow up to r1809302.

Provide a convenient function to get module flags, and remove useless

AP_MODULE_HAS_FLAGS checks in the core, core's version is at current MMN.

  1. … 2 more files in changeset.
config: follow up to r1809302.

We need to check that the module itself is at the right version.

  1. … 1 more file in changeset.
config: allow to specify flags when registering modules.

First one is AP_MODULE_FLAG_ALWAYS_MERGE.

  1. … 2 more files in changeset.
ap_server_config_defines and ap_server_{pre,post}_read_config are arrays of

*const* strings (must not change after being inserted), make it explicit.

  1. … 1 more file in changeset.
Introduce request taint-checking concept.

  1. … 6 more files in changeset.
* server/config.c, include/http_config.h (ap_build_cont_config,

ap_soak_end_container): Constify directive arguments - existing

callers pass string literals.

* server/core.c (start_cond_section): Remove casts needed for above.

  1. … 2 more files in changeset.
Add <IfDirective> and <IfSection>:

* server/core.c

(test_ifdirective_section, test_ifsection_section): New callbacks.

(core_cmds): Define new directives.

* include/http_config.h, server/config.c (ap_exists_directive):

New function.

* include/ap_mmn.h: Bump MMN minor for above.

* docs/manual/mod/core.xml: Add docs.

  1. … 5 more files in changeset.
Fix spelling in comments and text files.

No functional change.

PR 59990

  1. … 69 more files in changeset.
Add -DDUMP_INCLUDES configtest option to show the tree

of Included configuration files.

Example:

Included configuration files:

(*) .../conf/httpd.conf

(517) .../conf/extra/proxy-html.conf

(91) /dev/null

Submitted By: Jacob Champion <champion.pxi gmail.com>

Committed By: covener

  1. … 3 more files in changeset.
Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygen
  1. … 49 more files in changeset.
Save a few bytes in the conf pool.

The directive's names don't need to be duplicated in this pool when parsing the configuration file.

Either they match a known directive name and we can use it directly if needed. Otherwise, it is still possible to make a copy afterwards.

mod_proxy, mod_ssl: Handle SSLProxy* directives in <Proxy> sections,

allowing per backend TLS configuration.

  1. … 19 more files in changeset.
Follow up to r1715876: core directives' tokens are ASCII.
  1. … 1 more file in changeset.
Follow up to r1715876: core directives are ASCII.
  1. … 1 more file in changeset.
Fix some minor style issue.
Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to save a few cycles.
Revert r1672014 - doesn't work as advertised (would break configs

where the per-vhost log level is different from the global level)

  1. … 1 more file in changeset.
UNSET the VirtualHost's LogLevel just before calling ap_merge_log_config(),

to make sure that the DEFAULT_LOGLEVEL (APLOG_WARNING) is also in effect

when ap_process_config_tree() in main.c:main() walks through the

VirtualHost sections.

See https://mail-archives.apache.org/mod_mbox/httpd-dev/201404.mbox/%3C535CC85B.80501%40velox.ch%3E

for one case this is addressing. This reverts the change from r1024427 on

the one hand, but still ensures correct LogLevel merging on the other hand.

  1. … 1 more file in changeset.
Save a few bytes in conf pool.
Provide a way for EXEC_ON_READ directives to see their context

(parent directive).

Usually, this context is not also EXEC_ON_READ so it's not fully processed, so

e.g cmd->path is not fluffed up yet because the closing tag

of the section is not read yet and ap_check_cmd_context()

doesn't work)

  1. … 2 more files in changeset.
Avoid useless warning message when parsing a section guarded by <IfDefine foo> if $(foo) is used within the section.

PR 56503

  1. … 1 more file in changeset.
Replace pre_htaccess hook with more flexible open_htaccess hook

  1. … 4 more files in changeset.
factor out DEFAULT_HANDLER_NAME

  1. … 2 more files in changeset.
Use %pm available since apr 1.3 instead of an extra call to apr_strerror

  1. … 5 more files in changeset.