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 2023/01/27 09:35:59 UTC

[Bug 66443] New: [2.4.55 regression] SSI include virtual=file + mod_redirect outputs line noise

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

            Bug ID: 66443
           Summary: [2.4.55 regression] SSI include virtual=file +
                    mod_redirect outputs line noise
           Product: Apache httpd-2
           Version: 2.4.55
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_include
          Assignee: bugs@httpd.apache.org
          Reporter: aavmurphy@gmail.com
  Target Milestone: ---

Regression
Works in ubuntu: "apache2/jammy 2.4.52-1ubuntu4 amd64" (and earlier)
Fails in "apache2/jammy,now 2.4.55-1+ubuntu22.04.1+deb.sury.org+2 amd64
[installed]"

Have 2 virtual servers with flat html pages that use SSI with multi-level
virtual="file.html"
includes
(e.g. page.html includes "top-of-page.html" which includes "brand_menu.html")

To differential between the 2 virtual servers, I use a .htaccess redirect for
server #2

RewriteEngine On
RewriteRule    "ssi/top/brand_menu.html" "/ssi_maps/brand_menu.html"


This causes the output to be line noise.

Pages that don't use the SSI redirect are fine.
Commenting out the "RewriteRule" is fine (just outputs the first server's
"brand_menu.html")

This is the line that's causing the problem

<!--#include virtual="top/brand_menu.html"-->

If mod_redirect gets involved in that line, the output is a page of line noise

Work around

<!--#if expr="%{HTTP_HOST} == 'maps.walkingclub.org.uk'" -->
    <!--#include virtual="/ssi_maps/brand_menu.html"-->
<!--#else -->
    <!--#include virtual="top/brand_menu.html"-->
<!--#endif -->

Bit scary at first. Upgrading Apache2 has never caused a problem before.

Thank you for the **amazing** work for the whole internet you are doing.

-- 
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 66443] [2.4.55 regression] SSI include virtual=file + mod_rewrite outputs line noise

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

andrew murphy <aa...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
            Summary|[2.4.55 regression] SSI     |[2.4.55 regression] SSI
                   |include virtual=file +      |include virtual=file +
                   |mod_redirect outputs line   |mod_rewrite outputs line
                   |noise                       |noise

-- 
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 66443] [2.4.55 regression] SSI include virtual=file + mod_rewrite outputs line noise

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

--- Comment #1 from andrew murphy <aa...@gmail.com> ---
ubuntu curl --compressed (which doesn't use brotli compression, just gzip) DOES
get the correct page, which is strange

a "test your url around the world" website shows line-noise each time

I'm wandering if its mod-includes + mod-rewrite + mod-brotli all together
that's getting it wrong - it is some difference between curl fetching a page,
and chrome fetching it.

-- 
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