Date: Thu, 18 Nov 2010 14:27:14 +0100 (CET) From: Karlo Luiten <karlo@anywi.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/152363: Apache can not serve images from TMPFS Message-ID: <20101118132714.32AD229B03E@arenal.anywi.com> Resent-Message-ID: <201011181350.oAIDo753050198@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 152363 >Category: kern >Synopsis: Apache can not serve images from TMPFS >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 18 13:50:06 UTC 2010 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101118132714.32AD229B03E>