ProxyTimeout honored, but not ProxyPassMatch ... "timeout=n"

Bug #1825592 reported by pseudonomous
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm running Apache as a reverse proxy, potentially for a few different services I want to proxy. One of them is finicky, and I want a fast timeout if it's not working. Another service occasionally has legitimate reasons to be slow. So I'm doing something like this:

ProxyPassMatch "^/a(.*)" http://bounce.math.uic.edu/a$1 connectiontimeout=1 timeout=1
ProxyPassMatch "^/b(.*)" http://bounce.math.uic.edu/b$1 connectiontimeout=60 timeout=60

But the timeout parameters seem to be ignored for both "ProxyPassMatch" directives.

I *can* modify behavior globally with

ProxyTimeout 1

Unfortunately, this does not work for my purpose because I need different proxy timeouts in the same VirtualHost.

I do wonder if this bug is related to:

https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1509083

though that bug seems to be filed against a different version of Apache shipped in a previous Ubuntu release.

ProblemType: Bug
Apache2ConfdDirListing: False
Apache2Modules: httpd (pid 30649) already running
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
Date: Sat Apr 20 01:42:08 2019
Dependencies:
 adduser 3.116ubuntu1
 apache2-bin 2.4.29-1ubuntu4.6
 apache2-data 2.4.29-1ubuntu4.6
 apache2-utils 2.4.29-1ubuntu4.6
 apt 1.6.10
 apt-utils 1.6.10
 bzip2 1.0.6-8.1
 ca-certificates 20180409
 debconf 1.5.66
 debconf-i18n 1.5.66
 dpkg 1.19.0.5ubuntu2.1
 file 1:5.32-2ubuntu0.2
 gcc-8-base 8.2.0-1ubuntu2~18.04
 gpgv 2.2.4-1ubuntu1.2
 init-system-helpers 1.51
 libacl1 2.2.52-3build1
 libapr1 1.6.3-2
 libaprutil1 1.6.1-2
 libaprutil1-dbd-sqlite3 1.6.1-2
 libaprutil1-ldap 1.6.1-2
 libapt-inst2.0 1.6.10
 libapt-pkg5.0 1.6.10
 libasn1-8-heimdal 7.5.0+dfsg-1
 libattr1 1:2.4.47-2build1
 libaudit-common 1:2.8.2-1ubuntu1
 libaudit1 1:2.8.2-1ubuntu1
 libbz2-1.0 1.0.6-8.1
 libc6 2.27-3ubuntu1
 libcap-ng0 0.7.7-3.1
 libdb5.3 5.3.28-13.1ubuntu1
 libexpat1 2.2.5-3
 libffi6 3.2.1-8
 libgcc1 1:8.2.0-1ubuntu2~18.04
 libgcrypt20 1.8.1-4ubuntu1.1
 libgdbm-compat4 1.14.1-6
 libgdbm5 1.14.1-6
 libgmp10 2:6.1.2+dfsg-2
 libgnutls30 3.5.18-1ubuntu1
 libgpg-error0 1.27-6
 libgpm2 1.20.7-5
 libgssapi3-heimdal 7.5.0+dfsg-1
 libhcrypto4-heimdal 7.5.0+dfsg-1
 libheimbase1-heimdal 7.5.0+dfsg-1
 libheimntlm0-heimdal 7.5.0+dfsg-1
 libhogweed4 3.4-1
 libhx509-5-heimdal 7.5.0+dfsg-1
 libicu60 60.2-3ubuntu3
 libidn2-0 2.0.4-1.1build2
 libkrb5-26-heimdal 7.5.0+dfsg-1
 libldap-2.4-2 2.4.45+dfsg-1ubuntu1.1
 libldap-common 2.4.45+dfsg-1ubuntu1.1
 liblocale-gettext-perl 1.07-3build2
 liblua5.2-0 5.2.4-1.1build1
 liblz4-1 0.0~r131-2ubuntu3
 liblzma5 5.2.2-1.3
 libmagic-mgc 1:5.32-2ubuntu0.2
 libmagic1 1:5.32-2ubuntu0.2
 libncurses5 6.1-1ubuntu1.18.04
 libncursesw5 6.1-1ubuntu1.18.04
 libnettle6 3.4-1
 libnghttp2-14 1.30.0-1ubuntu1
 libp11-kit0 0.23.9-2
 libpam-modules 1.1.8-3.6ubuntu2.18.04.1
 libpam-modules-bin 1.1.8-3.6ubuntu2.18.04.1
 libpam0g 1.1.8-3.6ubuntu2.18.04.1
 libpcre3 2:8.39-9
 libperl5.26 5.26.1-6ubuntu0.3
 libprocps6 2:3.3.12-3ubuntu1.1
 libroken18-heimdal 7.5.0+dfsg-1
 libsasl2-2 2.1.27~101-g0780600+dfsg-3ubuntu2
 libsasl2-modules 2.1.27~101-g0780600+dfsg-3ubuntu2
 libsasl2-modules-db 2.1.27~101-g0780600+dfsg-3ubuntu2
 libseccomp2 2.3.1-2.1ubuntu4.1
 libselinux1 2.7-2build2
 libsemanage-common 2.7-2build2
 libsemanage1 2.7-2build2
 libsepol1 2.7-1
 libsmartcols1 2.31.1-0.4ubuntu3.3
 libsqlite3-0 3.22.0-1
 libssl1.1 1.1.0g-2ubuntu4.3
 libstdc++6 8.2.0-1ubuntu2~18.04
 libsystemd0 237-3ubuntu10.20
 libtasn1-6 4.13-2
 libtext-charwidth-perl 0.04-7.1
 libtext-iconv-perl 1.7-5build6
 libtext-wrapi18n-perl 0.06-7.1
 libtinfo5 6.1-1ubuntu1.18.04
 libudev1 237-3ubuntu10.20
 libunistring2 0.9.9-0ubuntu2
 libuuid1 2.31.1-0.4ubuntu3.3
 libwind0-heimdal 7.5.0+dfsg-1
 libxml2 2.9.4+dfsg1-6.1ubuntu1.2
 libzstd1 1.3.3+dfsg-2ubuntu1
 lsb-base 9.20170808ubuntu1
 mime-support 3.60ubuntu1
 netbase 5.4
 openssl 1.1.0g-2ubuntu4.3
 passwd 1:4.5-1ubuntu1
 perl 5.26.1-6ubuntu0.3 [modified: usr/bin/shasum]
 perl-base 5.26.1-6ubuntu0.3
 perl-modules-5.26 5.26.1-6ubuntu0.3
 procps 2:3.3.12-3ubuntu1.1
 psmisc 23.1-1ubuntu0.1
 ssl-cert 1.0.39
 tar 1.29b-2ubuntu0.1
 ubuntu-keyring 2018.09.18.1~18.04.0
 uuid-runtime 2.31.1-0.4ubuntu3.3
 xz-utils 5.2.2-1.3
 zlib1g 1:1.2.11.dfsg-0ubuntu2
DistroRelease: Ubuntu 18.04
NonfreeKernelModules: openafs
Package: apache2 2.4.29-1ubuntu4.6
PackageArchitecture: amd64
ProcCpuinfoMinimal:
 processor : 0
 vendor_id : AuthenticAMD
 cpu family : 21
 model : 2
 model name : AMD FX(tm)-9590 Eight-Core Processor
 stepping : 0
 microcode : 0x6000626
 cpu MHz : 4294.964
 cache size : 2048 KB
 physical id : 0
 siblings : 1
 core id : 0
 cpu cores : 1
 apicid : 0
 initial apicid : 0
 fpu : yes
 fpu_exception : yes
 cpuid level : 13
 wp : yes
 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm cr8_legacy abm sse4a misalignsse 3dnowprefetch ssbd vmmcall arat
 bugs : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
 bogomips : 8589.92
 TLB size : 1536 4K pages
 clflush size : 64
 cache_alignment : 64
 address sizes : 48 bits physical, 48 bits virtual
 power management:
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 4.15.0-47.50-generic 4.15.18
SourcePackage: apache2
Tags: bionic
Uname: Linux 4.15.0-47-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True
error.log:
 [Fri Apr 19 06:25:02.503979 2019] [mpm_prefork:notice] [pid 28921] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Fri Apr 19 06:25:02.504017 2019] [core:notice] [pid 28921] AH00094: Command line: '/usr/sbin/apache2'
 [Fri Apr 19 06:29:18.271189 2019] [mpm_prefork:notice] [pid 28921] AH00169: caught SIGTERM, shutting down
 [Fri Apr 19 06:29:18.522424 2019] [mpm_prefork:notice] [pid 29351] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Fri Apr 19 06:29:18.526795 2019] [core:notice] [pid 29351] AH00094: Command line: '/usr/sbin/apache2'
 [Fri Apr 19 06:34:18.620767 2019] [proxy_http:error] [pid 29361] (70007)The timeout specified has expired: [client 131.193.178.108:34732] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Fri Apr 19 06:34:18.620854 2019] [proxy:error] [pid 29361] [client 131.193.178.108:34732] AH00898: Error reading from remote server returned by /afs/
 [Fri Apr 19 06:34:22.047413 2019] [proxy_http:error] [pid 29360] (70007)The timeout specified has expired: [client 131.193.178.108:34734] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Fri Apr 19 06:34:22.047496 2019] [proxy:error] [pid 29360] [client 131.193.178.108:34734] AH00898: Error reading from remote server returned by /afs/
 [Fri Apr 19 22:50:43.095148 2019] [mpm_prefork:notice] [pid 29351] AH00169: caught SIGTERM, shutting down
 [Fri Apr 19 22:50:43.394000 2019] [mpm_prefork:notice] [pid 25032] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Fri Apr 19 22:50:43.396164 2019] [core:notice] [pid 25032] AH00094: Command line: '/usr/sbin/apache2'
 [Fri Apr 19 22:54:00.602955 2019] [proxy:error] [pid 25037] (110)Connection timed out: AH00957: HTTP: attempt to connect to 131.193.178.72:80 (*) failed
 [Fri Apr 19 22:54:00.603033 2019] [proxy_http:error] [pid 25037] [client 131.193.178.108:47422] AH01114: HTTP: failed to make connection to backend: bounce.math.uic.edu
 [Fri Apr 19 22:54:04.700691 2019] [proxy:error] [pid 25035] (110)Connection timed out: AH00957: HTTP: attempt to connect to 131.193.178.72:80 (*) failed
 [Fri Apr 19 22:54:04.700762 2019] [proxy_http:error] [pid 25035] [client 131.193.178.108:47424] AH01114: HTTP: failed to make connection to backend: bounce.math.uic.edu
 [Fri Apr 19 22:56:15.453272 2019] [mpm_prefork:notice] [pid 25032] AH00169: caught SIGTERM, shutting down
 [Fri Apr 19 22:56:15.691288 2019] [mpm_prefork:notice] [pid 25562] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Fri Apr 19 22:56:15.692630 2019] [core:notice] [pid 25562] AH00094: Command line: '/usr/sbin/apache2'
 [Fri Apr 19 23:03:35.005885 2019] [mpm_prefork:notice] [pid 25562] AH00169: caught SIGTERM, shutting down
 [Fri Apr 19 23:03:35.248195 2019] [mpm_prefork:notice] [pid 25730] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Fri Apr 19 23:03:35.250713 2019] [core:notice] [pid 25730] AH00094: Command line: '/usr/sbin/apache2'
 [Fri Apr 19 23:04:42.079876 2019] [mpm_prefork:notice] [pid 25730] AH00169: caught SIGTERM, shutting down
 [Fri Apr 19 23:04:42.296005 2019] [mpm_prefork:notice] [pid 25797] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Fri Apr 19 23:04:42.297266 2019] [core:notice] [pid 25797] AH00094: Command line: '/usr/sbin/apache2'
 [Fri Apr 19 23:10:58.385032 2019] [proxy_http:error] [pid 25803] (70007)The timeout specified has expired: [client 131.193.178.108:47720] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Fri Apr 19 23:10:58.385117 2019] [proxy:error] [pid 25803] [client 131.193.178.108:47720] AH00898: Error reading from remote server returned by /afs/
 [Fri Apr 19 23:11:23.961083 2019] [proxy_http:error] [pid 25800] (70007)The timeout specified has expired: [client 131.193.178.108:47738] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Fri Apr 19 23:11:23.961177 2019] [proxy:error] [pid 25800] [client 131.193.178.108:47738] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 00:54:13.595774 2019] [proxy_http:error] [pid 25828] (70007)The timeout specified has expired: [client 131.193.178.108:48520] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 00:54:13.595878 2019] [proxy:error] [pid 25828] [client 131.193.178.108:48520] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 00:54:17.989888 2019] [proxy_http:error] [pid 25829] (70007)The timeout specified has expired: [client 131.193.178.108:48518] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 00:54:17.989964 2019] [proxy:error] [pid 25829] [client 131.193.178.108:48518] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:01:08.071138 2019] [mpm_prefork:notice] [pid 25797] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:01:08.361567 2019] [mpm_prefork:notice] [pid 29577] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:01:08.362940 2019] [core:notice] [pid 29577] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:06:12.515174 2019] [proxy_http:error] [pid 29582] (70007)The timeout specified has expired: [client 131.193.178.108:49134] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:06:12.515291 2019] [proxy:error] [pid 29582] [client 131.193.178.108:49134] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:06:22.748755 2019] [proxy_http:error] [pid 29583] (70007)The timeout specified has expired: [client 131.193.178.108:49132] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:06:22.748840 2019] [proxy:error] [pid 29583] [client 131.193.178.108:49132] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:06:27.131868 2019] [proxy_http:error] [pid 29581] (70007)The timeout specified has expired: [client 131.193.178.108:49142] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:06:27.131948 2019] [proxy:error] [pid 29581] [client 131.193.178.108:49142] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:08:43.285394 2019] [mpm_prefork:notice] [pid 29577] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:08:43.516945 2019] [mpm_prefork:notice] [pid 30267] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:08:43.520504 2019] [core:notice] [pid 30267] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:09:10.644447 2019] [mpm_prefork:notice] [pid 30267] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:09:10.873433 2019] [mpm_prefork:notice] [pid 30316] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:09:10.874698 2019] [core:notice] [pid 30316] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:09:44.487841 2019] [mpm_prefork:notice] [pid 30316] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:09:44.721359 2019] [mpm_prefork:notice] [pid 30374] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:09:44.723045 2019] [core:notice] [pid 30374] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:11:02.771749 2019] [mpm_prefork:notice] [pid 30374] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:11:03.006362 2019] [mpm_prefork:notice] [pid 30431] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:11:03.008236 2019] [core:notice] [pid 30431] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:11:09.335273 2019] [proxy_http:error] [pid 30439] (70007)The timeout specified has expired: [client 131.193.178.108:49348] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:11:09.338639 2019] [proxy:error] [pid 30439] [client 131.193.178.108:49348] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:11:23.154969 2019] [mpm_prefork:notice] [pid 30431] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:11:23.382299 2019] [mpm_prefork:notice] [pid 30476] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:11:23.384157 2019] [core:notice] [pid 30476] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:11:27.680326 2019] [proxy_http:error] [pid 30483] (70007)The timeout specified has expired: [client 131.193.178.108:49354] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:11:27.680412 2019] [proxy:error] [pid 30483] [client 131.193.178.108:49354] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:11:31.656494 2019] [proxy_http:error] [pid 30483] (70007)The timeout specified has expired: [client 131.193.178.108:49354] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:11:31.656553 2019] [proxy:error] [pid 30483] [client 131.193.178.108:49354] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:11:41.314070 2019] [proxy_http:error] [pid 30482] (70007)The timeout specified has expired: [client 131.193.178.108:49356] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:11:41.314434 2019] [proxy:error] [pid 30482] [client 131.193.178.108:49356] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:12:12.762933 2019] [mpm_prefork:notice] [pid 30476] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:12:12.985931 2019] [mpm_prefork:notice] [pid 30530] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:12:12.987173 2019] [core:notice] [pid 30530] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:12:17.380943 2019] [proxy_http:error] [pid 30535] (70007)The timeout specified has expired: [client 131.193.178.108:49362] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:12:17.381031 2019] [proxy:error] [pid 30535] [client 131.193.178.108:49362] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:16:23.488198 2019] [proxy_http:error] [pid 30534] (70007)The timeout specified has expired: [client 131.193.178.108:49370] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:16:23.488526 2019] [proxy:error] [pid 30534] [client 131.193.178.108:49370] AH00898: Error reading from remote server returned by /afs/
 [Sat Apr 20 01:16:44.084856 2019] [mpm_prefork:notice] [pid 30530] AH00169: caught SIGTERM, shutting down
 [Sat Apr 20 01:16:44.310937 2019] [mpm_prefork:notice] [pid 30649] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
 [Sat Apr 20 01:16:44.313799 2019] [core:notice] [pid 30649] AH00094: Command line: '/usr/sbin/apache2'
 [Sat Apr 20 01:16:50.513141 2019] [proxy_http:error] [pid 30657] (70007)The timeout specified has expired: [client 131.193.178.108:49376] AH01102: error reading status line from remote server bounce.math.uic.edu:80
 [Sat Apr 20 01:16:50.513443 2019] [proxy:error] [pid 30657] [client 131.193.178.108:49376] AH00898: Error reading from remote server returned by /afs/
modified.conffile..etc.apache2.apache2.conf: [modified]
modified.conffile..etc.apache2.sites-available.000-default.conf: [modified]
modified.conffile..etc.apache2.sites-available.default-ssl.conf: [modified]
mtime.conffile..etc.apache2.apache2.conf: 2019-03-27T21:40:21.485039
mtime.conffile..etc.apache2.sites-available.000-default.conf: 2019-03-26T13:33:33.545401
mtime.conffile..etc.apache2.sites-available.default-ssl.conf: 2019-03-26T19:49:44.962571

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.