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: aavmur...@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-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to