https://issues.apache.org/bugzilla/show_bug.cgi?id=45037

           Summary: Include statement in VirtualHost not working within
                    context
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Putting an Include statement inside a VirtualHost block doesn't include the
file in that context. For example, having /etc/twiki/apache.conf contain:

RedirectMatch ^/$ /cgi-bin/twiki/view

and then including this inside

<VirtualHost 192.168.0.254:80>
    DocumentRoot /var/www/twiki
    ServerName twiki.domain
    ServerAlias twiki
    ErrorLog /var/log/apache2/twiki-error.log
    CustomLog /var/log/apache2/twiki-access.log combined
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    Include /etc/twiki/apache.conf
</VirtualHost>

causes all VirtualHosts to act on the rewrite, not just the one containing the
Include statement. Placing the Redirect inline and removing the Include
statement has the desired effect.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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