https://issues.apache.org/bugzilla/show_bug.cgi?id=45225
Summary: XBitHack breaks DirectoryIndex + MultiViews content
negotiation
Product: Apache httpd-2
Version: 2.2.8
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_include
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Problem: The transfer of a document fails if it was chosen by Apache because of
DirectoryIndex and MultiViews, and XBitHack is set.
Reproduction:
VirtualHost configuration:
<VirtualHost *:80>
ServerName problem
DocumentRoot /web/problem
CustomLog "/var/log/apache2/problem" combined
ErrorLog "/var/log/apache2/problem_e"
Options +MultiViews +Includes
DirectoryIndex index
XBitHack Full
</VirtualHost>
The file in DocumentRoot:
$ echo '<!--#set var="a" value="ABC" -->T: <!--#echo var="a" -->' > index.html
$ chmod 744 index.html
Example HEAD request (works fine):
$ curl -I http://problem/
HTTP/1.1 200 OK
Date: Wed, 18 Jun 2008 05:08:43 GMT
Server: Apache
Content-Location: index.html
Vary: negotiate
TCN: choice
Accept-Ranges: bytes
Content-Type: text/html; charset=UTF-8
But a GET request hangs (curl hangs for 10 seconds before exiting with the
error, web browsers just fail and display an error):
$ curl http://problem/
T: ABC
curl: (18) transfer closed with outstanding read data remaining
The log records a successful request.
This request is fine:
$ curl http://problem/index
T: ABC
To "fix":
$ chmod 644 index.html
$ curl http://problem/
<!--#set var="a" value="ABC" -->T: <!--#echo var="a" -->
Bring back the SSI:
$ mv index.html index.shtml
$ curl http://problem/
T: ABC
--
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]