https://bz.apache.org/bugzilla/show_bug.cgi?id=63277

--- Comment #5 from [email protected] <[email protected]> ---
Hello! I have similar issue on apache 2.4.41. On my backends i use basic auth
and when connect through Proxy balancer:// got 401 code. also with Proxy
configered healthcheck and when i disable the healthcheck proxy member work
fine. On apache 2.4.39 also work fine with original config PROXY. Sory for my
bad english.


configs:

PROXY:

<VirtualHost *:91>
LogLevel debug
LogLevel proxy_hcheck:trace2
LogLevel proxy:trace2
LogLevel watchdog:trace2
ErrorLog /var/log/httpd/catalog-error_log
CustomLog "/var/log/catalog-access_log" combined
    ProxyRequests off
    <Proxy balancer://catalog>
        BalancerMember http://1.1.1.1:91 hcmethod=GET  hcuri=/getStatus.php
hcinterval=5 timeout=3 retry=5 connectiontimeout=500ms
        BalancerMember http://1.1.1.2:91 hcmethod=GET  hcuri=/getStatus.php
hcinterval=5 timeout=3 retry=5 connectiontimeout=500ms
        Require all granted
        ProxySet lbmethod=byrequests
    </Proxy>
    ProxyPass / balancer://catalog/
</VirtualHost>



MEMBER1:
<VirtualHost _default_ *:91>
    ServerName catalog1.example.com
    ServerAlias 1.1.1.1
    DocumentRoot "/var/www/html/service/public"
    ErrorLog /var/log/httpd/catalog1.example.com-error_log
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
    CustomLog "logs/catalog1.example.com-access_log" combined
    LogLevel debug
    <Location />
        AuthType Basic
        AuthName "Please enter your username and password"
        AuthUserFile /etc/httpd/conf/htpasswd
        <RequireAny>
            Require ip 127.0.0.1
            Require valid-user
        </RequireAny>
    </Location>

    <Directory "/var/www/html/service/public">
        Options FollowSymLinks
        AllowOverride None
        Require valid-user
    </Directory>

    ProxyPassMatch ^/(.*\.php(/.*)?)$
unix:///var/run/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/html/service/public/$1
    ProxyTimeout 18000
    DirectoryIndex /index.php index.php
</VirtualHost>

MEMBER2:

<VirtualHost _default_ *:91>
    ServerName catalog2.example.com
    ServerAlias 1.1.1.2
    DocumentRoot "/var/www/html/service/public"
    ErrorLog /var/log/httpd/catalog2.example.com-error_log
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
    CustomLog "logs/catalog1.example.com-access_log" combined
    LogLevel debug
    <Location />
        AuthType Basic
        AuthName "Please enter your username and password"
        AuthUserFile /etc/httpd/conf/htpasswd
        <RequireAny>
            Require ip 127.0.0.1
            Require valid-user
        </RequireAny>
    </Location>

    <Directory "/var/www/html/service/public">
        Options FollowSymLinks
        AllowOverride None
        Require valid-user
    </Directory>

    ProxyPassMatch ^/(.*\.php(/.*)?)$
unix:///var/run/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/html/service/public/$1
    ProxyTimeout 18000
    DirectoryIndex /index.php index.php
</VirtualHost>

LOG_FROM_PROXY:

[Tue Aug 20 04:33:43.247155 2019] [proxy_balancer:debug] [pid 1:tid
140415046375616] mod_proxy_balancer.c(919): AH01178: Doing balancers create:
544, 1 (6)
[Tue Aug 20 04:33:43.247354 2019] [proxy_balancer:debug] [pid 1:tid
140415046375616] mod_proxy_balancer.c(989): AH01184: Doing workers create:
balancer://catalog (p678f5e47_catalog), 1064, 2 [0]
[Tue Aug 20 04:33:43.249728 2019] [proxy_hcheck:debug] [pid 1:tid
140415046375616] mod_proxy_hcheck.c(1053): AH03265: watchdog callback
registered (_proxy_hcheck_ for 172.18.0.4)
[Tue Aug 20 04:33:43.253551 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(899): AH03258: _proxy_hcheck_ watchdog
started.
[Tue Aug 20 04:33:43.254200 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(913): AH03313: apr_thread_pool_create()
with 16 threads succeeded
[Tue Aug 20 04:33:43.254294 2019] [proxy_balancer:debug] [pid 13:tid
140415046375616] mod_proxy_balancer.c(134): AH01158: Looking at
balancer://catalog -> http://1.1.1.1:91 initialized?
[Tue Aug 20 04:33:43.254316 2019] [proxy:debug] [pid 13:tid 140415046375616]
proxy_util.c(1935): AH00925: initializing worker http://1.1.1.1:91 shared
[Tue Aug 20 04:33:43.254339 2019] [proxy:debug] [pid 13:tid 140415046375616]
proxy_util.c(1992): AH00927: initializing worker http://1.1.1.1:91 local
[Tue Aug 20 04:33:43.254378 2019] [proxy:debug] [pid 13:tid 140415046375616]
proxy_util.c(2027): AH00930: initialized pool in child 13 for (1.1.1.1) min=0
max=74 smax=74
[Tue Aug 20 04:33:43.254388 2019] [proxy_balancer:debug] [pid 13:tid
140415046375616] mod_proxy_balancer.c(134): AH01158: Looking at
balancer://catalog -> http://1.1.1.2:91 initialized?
[Tue Aug 20 04:33:43.254392 2019] [proxy:debug] [pid 13:tid 140415046375616]
proxy_util.c(1935): AH00925: initializing worker http://1.1.1.2:91 shared
[Tue Aug 20 04:33:43.254397 2019] [proxy:debug] [pid 13:tid 140415046375616]
proxy_util.c(1992): AH00927: initializing worker http://1.1.1.2:91 local
[Tue Aug 20 04:33:43.254415 2019] [proxy:debug] [pid 13:tid 140415046375616]
proxy_util.c(2027): AH00930: initialized pool in child 13 for (1.1.1.2) min=0
max=74 smax=74
[Tue Aug 20 04:33:43.256466 2019] [proxy_balancer:debug] [pid 14:tid
140415046375616] mod_proxy_balancer.c(134): AH01158: Looking at
balancer://catalog -> http://1.1.1.1:91 initialized?
[Tue Aug 20 04:33:43.256501 2019] [proxy_balancer:debug] [pid 14:tid
140415046375616] mod_proxy_balancer.c(134): AH01158: Looking at
balancer://catalog -> http://1.1.1.2:91 initialized?
[Tue Aug 20 04:33:48.316338 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(478): AH03248: Creating hc worker
560d70465d78 for http://1.1.1.1:91
[Tue Aug 20 04:33:48.316669 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(1935): AH00925: initializing worker 560d70465d78 shared
[Tue Aug 20 04:33:48.316685 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(1992): AH00927: initializing worker 560d70465d78 local
[Tue Aug 20 04:33:48.316708 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2027): AH00930: initialized pool in child 13 for (1.1.1.1) min=0
max=74 smax=74
[Tue Aug 20 04:33:48.316731 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(837): AH03256: Health checking
http://1.1.1.1:91
[Tue Aug 20 04:33:48.316918 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2327): AH00942: HCOH: has acquired connection for (1.1.1.1)
[Tue Aug 20 04:33:48.317026 2019] [proxy:trace2] [pid 13:tid 140413710239488]
proxy_util.c(3024): HCOH: fam 2 socket created to connect to 1.1.1.1
[Tue Aug 20 04:33:48.319649 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3058): AH02824: HCOH: connection established with 1.1.1.1:91
(1.1.1.1)
[Tue Aug 20 04:33:48.320042 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3242): AH00962: HCOH: connection complete to 1.1.1.1:91 (1.1.1.1)
[Tue Aug 20 04:33:48.322659 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(653): AH03254: HTTP/1.1 401 Unauthorized
[Tue Aug 20 04:33:48.322739 2019] [proxy_hcheck:trace2] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(820): Response status 401 for 560d70465d78
(http://1.1.1.1:91): failed
[Tue Aug 20 04:33:48.322748 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2342): AH00943: HCOH: has released connection for (1.1.1.1)
[Tue Aug 20 04:33:48.322804 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(585): AH03251: Health check GET Status (1)
for 560d70465d78.
[Tue Aug 20 04:33:48.322813 2019] [proxy_hcheck:info] [pid 13:tid
140413710239488] AH03303: Health check DISABLING http://1.1.1.1:91
[Tue Aug 20 04:33:48.322819 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(478): AH03248: Creating hc worker
560d70466590 for http://1.1.1.2:91
[Tue Aug 20 04:33:48.322838 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(1935): AH00925: initializing worker 560d70466590 shared
[Tue Aug 20 04:33:48.322845 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(1992): AH00927: initializing worker 560d70466590 local
[Tue Aug 20 04:33:48.322854 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2027): AH00930: initialized pool in child 13 for (1.1.1.2) min=0
max=74 smax=74
[Tue Aug 20 04:33:48.322862 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(837): AH03256: Health checking
http://1.1.1.2:91
[Tue Aug 20 04:33:48.322867 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2327): AH00942: HCOH: has acquired connection for (1.1.1.2)
[Tue Aug 20 04:33:48.322913 2019] [proxy:trace2] [pid 13:tid 140413710239488]
proxy_util.c(3024): HCOH: fam 2 socket created to connect to 1.1.1.2
[Tue Aug 20 04:33:48.323492 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3058): AH02824: HCOH: connection established with 1.1.1.2:91
(1.1.1.2)
[Tue Aug 20 04:33:48.323512 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3242): AH00962: HCOH: connection complete to 1.1.1.2:91 (1.1.1.2)
[Tue Aug 20 04:33:48.324510 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(653): AH03254: HTTP/1.1 401 Unauthorized
[Tue Aug 20 04:33:48.324551 2019] [proxy_hcheck:trace2] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(820): Response status 401 for 560d70466590
(http://1.1.1.2:91): failed
[Tue Aug 20 04:33:48.324558 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2342): AH00943: HCOH: has released connection for (1.1.1.2)
[Tue Aug 20 04:33:48.324653 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(585): AH03251: Health check GET Status (1)
for 560d70466590.
[Tue Aug 20 04:33:48.324667 2019] [proxy_hcheck:info] [pid 13:tid
140413710239488] AH03303: Health check DISABLING http://1.1.1.2:91
[Tue Aug 20 04:33:53.333480 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(837): AH03256: Health checking
http://1.1.1.1:91
[Tue Aug 20 04:33:53.333533 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2327): AH00942: HCOH: has acquired connection for (1.1.1.1)
[Tue Aug 20 04:33:53.333643 2019] [proxy:trace2] [pid 13:tid 140413710239488]
proxy_util.c(3024): HCOH: fam 2 socket created to connect to 1.1.1.1
[Tue Aug 20 04:33:53.336145 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3058): AH02824: HCOH: connection established with 1.1.1.1:91
(1.1.1.1)
[Tue Aug 20 04:33:53.336186 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3242): AH00962: HCOH: connection complete to 1.1.1.1:91 (1.1.1.1)
[Tue Aug 20 04:33:53.342052 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(653): AH03254: HTTP/1.1 401 Unauthorized
[Tue Aug 20 04:33:53.342139 2019] [proxy_hcheck:trace2] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(820): Response status 401 for 560d70465d78
(http://1.1.1.1:91): failed
[Tue Aug 20 04:33:53.342188 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2342): AH00943: HCOH: has released connection for (1.1.1.1)
[Tue Aug 20 04:33:53.342273 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(585): AH03251: Health check GET Status (1)
for 560d70465d78.
[Tue Aug 20 04:33:53.342286 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(837): AH03256: Health checking
http://1.1.1.2:91
[Tue Aug 20 04:33:53.342292 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2327): AH00942: HCOH: has acquired connection for (1.1.1.2)
[Tue Aug 20 04:33:53.342368 2019] [proxy:trace2] [pid 13:tid 140413710239488]
proxy_util.c(3024): HCOH: fam 2 socket created to connect to 1.1.1.2
[Tue Aug 20 04:33:53.342879 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3058): AH02824: HCOH: connection established with 1.1.1.2:91
(1.1.1.2)
[Tue Aug 20 04:33:53.342908 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3242): AH00962: HCOH: connection complete to 1.1.1.2:91 (1.1.1.2)
[Tue Aug 20 04:33:53.344025 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(653): AH03254: HTTP/1.1 401 Unauthorized
[Tue Aug 20 04:33:53.344079 2019] [proxy_hcheck:trace2] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(820): Response status 401 for 560d70466590
(http://1.1.1.2:91): failed
[Tue Aug 20 04:33:53.344086 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2342): AH00943: HCOH: has released connection for (1.1.1.2)
[Tue Aug 20 04:33:53.344140 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(585): AH03251: Health check GET Status (1)
for 560d70466590.
[Tue Aug 20 04:33:58.361381 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(837): AH03256: Health checking
http://1.1.1.1:91
[Tue Aug 20 04:33:58.361437 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2327): AH00942: HCOH: has acquired connection for (1.1.1.1)
[Tue Aug 20 04:33:58.361544 2019] [proxy:trace2] [pid 13:tid 140413710239488]
proxy_util.c(3024): HCOH: fam 2 socket created to connect to 1.1.1.1
[Tue Aug 20 04:33:58.364033 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3058): AH02824: HCOH: connection established with 1.1.1.1:91
(1.1.1.1)
[Tue Aug 20 04:33:58.364077 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3242): AH00962: HCOH: connection complete to 1.1.1.1:91 (1.1.1.1)
[Tue Aug 20 04:33:58.366786 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(653): AH03254: HTTP/1.1 401 Unauthorized
[Tue Aug 20 04:33:58.366833 2019] [proxy_hcheck:trace2] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(820): Response status 401 for 560d70465d78
(http://1.1.1.1:91): failed
[Tue Aug 20 04:33:58.366846 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2342): AH00943: HCOH: has released connection for (1.1.1.1)
[Tue Aug 20 04:33:58.366922 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(585): AH03251: Health check GET Status (1)
for 560d70465d78.
[Tue Aug 20 04:33:58.366941 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(837): AH03256: Health checking
http://1.1.1.2:91
[Tue Aug 20 04:33:58.366951 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(2327): AH00942: HCOH: has acquired connection for (1.1.1.2)
[Tue Aug 20 04:33:58.367036 2019] [proxy:trace2] [pid 13:tid 140413710239488]
proxy_util.c(3024): HCOH: fam 2 socket created to connect to 1.1.1.2
[Tue Aug 20 04:33:58.367718 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3058): AH02824: HCOH: connection established with 1.1.1.2:91
(1.1.1.2)
[Tue Aug 20 04:33:58.367753 2019] [proxy:debug] [pid 13:tid 140413710239488]
proxy_util.c(3242): AH00962: HCOH: connection complete to 1.1.1.2:91 (1.1.1.2)
[Tue Aug 20 04:33:58.368749 2019] [proxy_hcheck:debug] [pid 13:tid
140413710239488] mod_proxy_hcheck.c(653): AH03254: HTTP/1.1 401 Unauthorized

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to