summaryrefslogtreecommitdiff
path: root/modules/arch
Commit message (Collapse)AuthorAgeFilesLines
* mod_isapi: use consistent filenameEric Covener2022-06-011-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901504 13f79535-47bb-0310-9956-ffa450edef68
* Remove libsystemd dependency from main httpd binaryJoe Orton2022-04-121-0/+40
| | | | | | | | | | | | | | | Until this change httpd was linking libsystemd to the main httpd binary. If you want to run lightweight version of httpd in container, sometimes you just want to install httpd binary with as little dependencies as possible to make container small in size and do not pull uncencessary dependencies and libraries. This change will move all systemd library calls from listen.c to mod_systemd module and remove systemd linking from the main httpd bin. Fixed mixed declaration and wrongly declared variable. Submitted by: Luboš Uhliarik <luhliari redhat.com> Github: closes #312 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899784 13f79535-47bb-0310-9956-ffa450edef68
* mod_unixd: Make CoreDumpDirectory work for FreeBSD 11+. PR 65819.Yann Ylavic2022-01-201-0/+16
| | | | | | | | | | FreeBSD 11+ coredumping requires tracing enabled via procctl(PROC_TRACE_CTL). Submitted by: David CARLIER <devnexen gmail.com> Reviewed by: ylavic (by inspection) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897269 13f79535-47bb-0310-9956-ffa450edef68
* r1876779 follow-up.Christophe Jaillet2020-04-211-2/+2
| | | | | | | | | strcmp returns 0 if strings match, i.e. TLS/1.0 is found. ap_find_token returns 1 if TLS/1.0 is found. So the test has to be reversed to keep the same behavior git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876783 13f79535-47bb-0310-9956-ffa450edef68
* Fix the way we are looking for "TLS/1.0" tokens.Christophe Jaillet2020-04-211-1/+1
| | | | | | | | ap_find_token() is more robust than expecting the token to be the first one in the 'Upgrade' header field. (see modules/ssl/ssl_engine_kernel.c#284) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876779 13f79535-47bb-0310-9956-ffa450edef68
* Add missing pool tags to help debugging.Yann Ylavic2020-04-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876599 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-132-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* * modules/arch/unix/config5.m4: Don't override enable_systemd, fixingJoe Orton2020-01-141-2/+1
| | | | | | | | | | | | --enable-systemd=static per covener's suggestion in <CALK=YjPrN644NtLROwYPyBeCpev-GHSAD2J-Z2hupLymZ0op-g@mail.gmail.com> Also fix the APACHE_MODULE() usage; disable the module by default for the "all" modules selection. PR: 57632 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872763 13f79535-47bb-0310-9956-ffa450edef68
* * modules/arch/unix/mod_systemd.c: Remove IdleShutdown feature whichJoe Orton2020-01-141-45/+2
| | | | | | | | was buggy per sf's feedback in 2.4.x backport proposal, and would probably be more appropriate outside this module anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872761 13f79535-47bb-0310-9956-ffa450edef68
* * modules/arch/unix/mod_systemd.c (systemd_pre_mpm, systemd_monitor):Joe Orton2018-09-111-27/+11
| | | | | | | | Ignore sd_notify{,f} failure cases as currently recommended by the systemd API docs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1840555 13f79535-47bb-0310-9956-ffa450edef68
* * modules/arch/unix/mod_systemd.c (systemd_post_config): Fix systemdJoe Orton2018-09-111-0/+17
| | | | | | | | | | service getting stuck reloading if "ExtendedStatus off" is configured; regression in r1802251. PR: 62697 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1840554 13f79535-47bb-0310-9956-ffa450edef68
* Fix overriding ExtendedStatus to "off" with mod_systemd loaded, andJoe Orton2017-07-181-1/+17
| | | | | | | | | | | | | give more feedback to systemd during a reload. * modules/arch/unix/mod_systemd.c (systemd_pre_config): New function; tell systemd the service is reloading here. (systemd_pre_mpm): Don't set ap_extended_status here, do nothing if ExtendedStatus is off. (register_hooks): Register pre_config hook. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1802251 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling in comments and text files.Rainer Jung2016-08-113-5/+5
| | | | | | | | No functional change. PR 59990 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
* hostname: Test and log useragent_host per-request across various modules,William A. Rowe Jr2016-02-121-2/+1
| | | | | | | | | | | | | including the scoreboard, expression and rewrite engines, setenvif, authz_host, access_compat, custom logging, ssl and REMOTE_HOST variables. PR55348 [William Rowe] This is the complete change set which applies cleanly to 2.4.x as well, the server/scoreboard.c will follow, which does not apply due to drift. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729930 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-193-27/+27
| | | | | | | | | had none. Those were not detected by the coccinelle script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725485 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-191-5/+5
| | | | | | | | | | | had none. Handled all files in modules/. I used the coccinelle script provided by Stefan. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725392 13f79535-47bb-0310-9956-ffa450edef68
* Save a few bytes in conf pool when processing 'NWSSLTrustedCerts'.Christophe Jaillet2015-12-221-2/+2
| | | | | | *Untested* as I don't have the corresponding system. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1721313 13f79535-47bb-0310-9956-ffa450edef68
* Silent a sparse Warning.Christophe Jaillet2015-11-291-1/+2
| | | | | | | | | | | cid->ecb->lpszLogData can not be NULL. It is defined in mod_isapi.h as: typedef struct EXTENSION_CONTROL_BLOCK { ... char lpszLogData[80]; ... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1717086 13f79535-47bb-0310-9956-ffa450edef68
* Fix some style issues on files that can easily be synch'ed with 2.4.xChristophe Jaillet2015-09-302-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705983 13f79535-47bb-0310-9956-ffa450edef68
* Hmmm... why did git miss this?Jim Jagielski2015-03-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1664456 13f79535-47bb-0310-9956-ffa450edef68
* Concat string at compile time when possible.Christophe Jaillet2014-09-181-2/+2
| | | | | | | Doing so, sometimes also give the opportunity to turn a 'ap_fputstrs' into a 'ap_fputs'. PR 53741 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1626050 13f79535-47bb-0310-9956-ffa450edef68
* Follow up r1617201:Takashi Sato2014-08-191-1/+1
| | | | | | | | | | Return EPERM if the uid is not root on chroot-ing. Pointed out by trawick on <CAKUrXK6EGmG1ZD4+UFZ05yznTe6twOU3n57YeO-Ney-_VV_dCQ@mail.gmail.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1618778 13f79535-47bb-0310-9956-ffa450edef68
* mod_systemd: Use AP_SIG_GRACEFUL instead of SIGWINCH.Jan Kaluža2014-08-181-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1618588 13f79535-47bb-0310-9956-ffa450edef68
* mod_systemd: Add IdleShutdown - number of seconds in idle-state after whichJan Kaluža2014-08-181-2/+47
| | | | | | | | httpd is shutdown. This is useful in a combination with socket activation. Add mod_systemd documentation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1618579 13f79535-47bb-0310-9956-ffa450edef68
* geteuid is always successful,Takashi Sato2014-08-111-2/+1
| | | | | | | so remove errno reference. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1617201 13f79535-47bb-0310-9956-ffa450edef68
* unixd_drop_privileges and ap_unixd_setup_child are almost the same,Takashi Sato2014-08-111-53/+5
| | | | | | | so let's remove the redundant code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1617196 13f79535-47bb-0310-9956-ffa450edef68
* Add missing APLOGNO.Christophe Jaillet2014-07-201-12/+12
| | | | | | | | Refactor some lines to keep APLOGNO on the same line as ap_log_error, when applicable. Split lines longer than 80. Improve alignment. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1612068 13f79535-47bb-0310-9956-ffa450edef68
* Do not use deprecated define.Christophe Jaillet2014-07-191-1/+1
| | | | | | | No change in generated code because MODULE_MAGIC_NUMBER is defined as: #define MODULE_MAGIC_NUMBER MODULE_MAGIC_NUMBER_MAJOR git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1611871 13f79535-47bb-0310-9956-ffa450edef68
* s/equivalant/equivalent/ in commentsChristophe Jaillet2013-12-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550828 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Simplify/fix systemd detection: move later to fixJoe Orton2013-10-011-1/+1
| | | | | | | | | | | autoconf warnings; define HAVE_SYSTEMD rather than using CPPFLAGS. * server/listen.c: Use HAVE_SYSTEMD for systemd #define. * modules/arch/unix/config5.m4: Update systemd headers check. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528032 13f79535-47bb-0310-9956-ffa450edef68
* Add support for systemd socket activation to listener sockets.Paul Querna2013-08-061-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1511033 13f79535-47bb-0310-9956-ffa450edef68
* gratuitous 8-bit char in a commentEric Covener2013-07-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1498200 13f79535-47bb-0310-9956-ffa450edef68
* fix typoStefan Fritsch2013-06-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491610 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a potential NULL pointer deference.Guenter Knauf2013-02-071-9/+10
| | | | | | | This was brought up on dev list by Christophe Jaillet. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1443558 13f79535-47bb-0310-9956-ffa450edef68
* Style fixes - no code changes.Guenter Knauf2013-02-071-60/+75
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1443547 13f79535-47bb-0310-9956-ffa450edef68
* required by eventoptJim Jagielski2012-11-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1409295 13f79535-47bb-0310-9956-ffa450edef68
* Follow on to r1393976 and r1396424:Jeff Trawick2012-10-101-1/+1
| | | | | | | | | | | | | | mod_systemd: Specify "all" instead of "yes" (on Unix) so that APACHE_MODULE doesn't act as if the user requested it. General: Fix APACHE_MODULE so that failed prereqs will disable a module unless the user requested it explicitly. Result: By default systemd will be enabled where it actually works and disabled otherwise, but if the user requests it and the prereqs fail then configure will halt. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1396440 13f79535-47bb-0310-9956-ffa450edef68
* Follow up r1393976: Fix typo in enablement of mod_systemd that caused it to ↵Jeff Trawick2012-10-101-2/+1
| | | | | | be enabled on non-Unix git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1396424 13f79535-47bb-0310-9956-ffa450edef68
* * modules/arch/unix/mod_systemd.c (systemd_pre_mpm): Simplify codeJoe Orton2012-10-041-6/+2
| | | | | | | | slightly; no functional change. Use AP_DECLARE_MODULE. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1393997 13f79535-47bb-0310-9956-ffa450edef68
* * modules/arch/unix/mod_systemd.c: New module.Joe Orton2012-10-042-0/+116
| | | | | | | Submitted by: Jan Kaluza <jkaluza redhat.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1393976 13f79535-47bb-0310-9956-ffa450edef68
* Clarify code comment.Rainer Jung2012-08-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1375009 13f79535-47bb-0310-9956-ffa450edef68
* Code clean up (remove useless memory allocation) Stefan Fritsch2012-07-151-1/+1
| | | | | | | | Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr> PR: 52648 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361803 13f79535-47bb-0310-9956-ffa450edef68
* suexec: Support use of setgid/setuid capability bits on Linux, aJoe Orton2012-05-231-1/+8
| | | | | | | | | | | | | | | | | weaker set of privileges than the full setuid/setgid root binary. * configure.in: Add --enable-suexec-capabilites flag. * Makefile.in: If configured, use setcap instead of chmod 7555 on installed suexec binary. * modules/arch/unix/mod_unixd.c (unixd_pre_config): Drop test for setuid bit if capability bits are used. * docs/manual/: Add docs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1342065 13f79535-47bb-0310-9956-ffa450edef68
* Further clarify the naming of the entity that originates the request byGraham Leggett2011-12-141-1/+1
| | | | | | | calling that entity a useragent instead of a client. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1214003 13f79535-47bb-0310-9956-ffa450edef68
* definAtelyJeff Trawick2011-12-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1213381 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-026-70/+70
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr_status_t being passed as loglevelStefan Fritsch2011-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209741 13f79535-47bb-0310-9956-ffa450edef68
* Remove more log message prefixes that are now redundant as theStefan Fritsch2011-11-291-36/+36
| | | | | | | the error log format includes the module name. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1208110 13f79535-47bb-0310-9956-ffa450edef68
* Introduce a per connection "peer_ip" and a per request "client_ip" toGraham Leggett2011-11-251-1/+1
| | | | | | | | distinguish between the raw IP address of the connection and the effective IP address of the request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206291 13f79535-47bb-0310-9956-ffa450edef68
* Introduce a per request version of the remote IP address, which can beGraham Leggett2011-11-221-2/+2
| | | | | | | | optionally modified by a module when the effective IP of the client is not the same as the real IP of the client (such as a load balancer). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204968 13f79535-47bb-0310-9956-ffa450edef68