Re: How to force CRLF on non .txt files when directory browsing?

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

 



On Tue, 9 Feb 2010 13:47:25 -0600
Jonathon Veencamp <jdveencamp@xxxxxxxxx> wrote:


> But if I rename the file to *.log.txt, then the HTTP server and browser
> handles it correctly.  So the HTTP server is doing something different
> natively with .txt files

No, the server does nothing with the files, unless you (actively)
configure it to do something.  There's no FTP-style text-vs-binary
in HTTP.

Sounds more like IE is doing something different based on name.
This is probably the same bug that let in a generation of Outlook
viruses, as described in the MIME RFCs going back to 1992.
Offering them at a .txt URL may be the best fix for broken
so-called browsers.

You could also use mod_txt with apache to convert to HTML
formatted to appear as your original text.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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