You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2021/07/13 15:45:38 UTC

[Bug 65447] New: Reverse Proxy strange behaviour

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

            Bug ID: 65447
           Summary: Reverse Proxy strange behaviour
           Product: Apache httpd-2
           Version: 2.4.41
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
          Assignee: bugs@httpd.apache.org
          Reporter: g.ghidelli@winstech.it
  Target Milestone: ---

It's a completely non-intuitive situation: 1 Primefaces JSF application loaded
directly from the application server - works fine. Same JSF application loaded
through an Apache reverse proxy, and the computed CSS is different. All the CSS
files arrive un-corrupted in browser, but through the reverse proxy some
elements get the default User Agent Stylesheet. I would not expect that a
pass-through reverse-proxy influence CSS but apparently it does.

Rules:

[...]
ProxyRequests Off
ProxyPreserveHost Off
ProxyPass /b2b/  http://atb2b/
ProxyHTMLURLMap http://atb2b/  /b2b/

<Location /b2b/>
    ProxyPassReverse /
    ProxyHTMLEnable On
    ProxyHTMLURLMap  /  /b2b/
    RequestHeader    unset  Accept-Encoding
</Location>

[...]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65447] Reverse Proxy strange behaviour

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65447

Petr <pe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Petr <pe...@gmail.com> ---
I believe I encountered this issue as well. Turns out the proxied page didn't
have any DocType set, and it seems browsers (Google Chrome, Firefox) use
different User Agent Stylesheets based on the specified DocType.

Setting the ProxyHTMLDocType directive to the same DocType as specified by the
origin server solved this issue for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org