From karlo@anywi.com  Thu Nov 18 13:43:29 2010
Return-Path: <karlo@anywi.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3487D106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Nov 2010 13:43:29 +0000 (UTC)
	(envelope-from karlo@anywi.com)
Received: from baranao.anywi.com (baranao.anywi.com [213.207.101.176])
	by mx1.freebsd.org (Postfix) with ESMTP id F28178FC15
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Nov 2010 13:43:28 +0000 (UTC)
Received: from arenal.anywi.com (unknown [213.207.101.185])
	by baranao.anywi.com (Postfix) with ESMTP id 4F3103F41A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Nov 2010 14:27:14 +0100 (CET)
Received: by arenal.anywi.com (Postfix, from userid 1012)
	id 32AD229B03E; Thu, 18 Nov 2010 14:27:14 +0100 (CET)
Message-Id: <20101118132714.32AD229B03E@arenal.anywi.com>
Date: Thu, 18 Nov 2010 14:27:14 +0100 (CET)
From: Karlo Luiten <karlo@anywi.com>
Reply-To: Karlo Luiten <karlo@anywi.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Apache can not serve images from TMPFS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         152363
>Category:       kern
>Synopsis:       [tmpfs] Apache can not serve images from TMPFS
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 18 13:50:06 UTC 2010
>Closed-Date:    Fri Nov 19 13:32:06 UTC 2010
>Last-Modified:  Fri Nov 19 13:32:06 UTC 2010
>Originator:     Karlo Luiten
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
AnyWi Technologies
>Environment:
System: FreeBSD arenal.anywi.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Mon Sep 13 15:48:43 CEST 2010 root@arenal.anywi.com:/usr/obj/usr/src/sys/ARENAL amd64
>Description:
When /tmp is mounted via TMPFS, and an apache virtualhost is set up to serve images from a directory within /tmp (documentroot), images are not displayed proberly in browsers (Opera,Chrome). Tested with .jpg.
1st line of hexdump of original file:
0000000 d8ff e0ff 1000 464a 4649 0100 0001 0100
1st lines of hexdump of apache-served file:
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0000140 8600 0065 0008 0000 2200 0053 0008 0000
>How-To-Repeat:
Mount tmpfs: (/etc/fstab):
tmpfs				/tmp		tmpfs	rw,size=536870912,mode=01777   0       0
Setup a virtualhost within Apache with document root /tmp/any_dir
Place a jpg file in this directory, try to access it
>Fix:
None (use mdconfig disk instead of tmpfs).
>Release-Note:
>Audit-Trail:

From: Mateusz Guzik <mjguzik@gmail.com>
To: bug-followup@FreeBSD.org, karlo@anywi.com
Cc:  
Subject: Re: kern/152363: Apache can not serve images from TMPFS
Date: Thu, 18 Nov 2010 14:59:42 +0100

 Your issue is probably already fixed in STABLE - see
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127213
 
 Can you update your system and try to reproduce this problem?
 
 -- 
 Mateusz Guzik
State-Changed-From-To: open->closed 
State-Changed-By: arundel 
State-Changed-When: Fri Nov 19 13:31:05 UTC 2010 
State-Changed-Why:  
Duplicate of PR 127213. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152363 
>Unformatted:
