On Tue, Feb 9, 2010 at 2:51 PM, Jonathon Veencamp <jdveencamp@xxxxxxxxx> wrote:no, Apache doesn't do that
> I don't think it's a poor editting thing. I think this is the difference
> between Unix and Windows and CR/LF on Windows versus LF on Linux. The HTTP
> server is adding CR/LF to .txt files to display them correctly in the
> browser.
I dunno if because of some misunderstood config the "text/plain" isn't
> But I can't get it to display .log files in the same manner.
getting to the browser, or if the browser thinks its smarter than the
server.
Try this:
create a very small .log file
replace /example/small.log with the real request URI; if you're using
name-based vhosts, replace 127.0.0.1 with your hostname
C:\> telnet 127.0.0.1 80
GET /example/small.log HTTP/1.1<enter>
Host: 127.0.0.1<enter>
<enter>
See what is displayed for "Content-Type:" just prior to the contents
of the log file.
---------------------------------------------------------------------
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