Re: Re: File renders differently when opened through Apache or direct, why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 11, 2013 at 01:34:47PM +0200, Bo Berglund wrote:
> Since the data being transferred to FireFox looks exactly like what is
> being used when I open the file directly in FireFox, why does FireFox
> not display it in the same way?

When you open the file directly from the filesystem, there is no HTTP
header. When accessing the file over HTTP there is a header and it will
specify the MIME type, which is set by Apache. This is what mod_mime
does.

http://httpd.apache.org/docs/2.4/mod/mod_mime.html

HTH,

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Attachment: pgpDlw3zwKbAR.pgp
Description: PGP signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux