>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 [email protected]:/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:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to