httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Reinhardt" <crypto...@cryptodan.net>
Subject Re: [users@httpd] How to force CRLF on non .txt files when directory browsing?
Date Tue, 09 Feb 2010 19:40:22 GMT

--------------------------------------------------
From: "Jonathon Veencamp" <jdveencamp@gmail.com>
Sent: 09 February, 2010 19:31
To: <users@httpd.apache.org>
Subject: [users@httpd] How to force CRLF on non .txt files when directory 
browsing?

> Hello,
>
> I've beat my head on this wall far too long, and googled the heck out of it,
> so I'll ask the mailing list on what should be a simple problem.
>
> I have some text files on a linux host with .log and .properties
> extensions.  When these are sent to a windows browser, they do not have
> CR/LF and so each line wraps to the next and they don't format well in the
> browser.  I would like to have the Apache HTTP server treat these the same
> as .txt files, but I've been unable to find the configuration I need to
> change.
>
> I tried adding
> AddType text/html .log
> AddType text/html .properties
>
> and that didn't do it.  Then I tried
> AddHandler type-map .log
> AddHandler type-map .properties
>
> and that was a no go.
>
> I tried adding these to the mime.types file.
>
> About all I can think of now is to process these files via a CGI script to
> output them line by line with a <BR> if necessary, but that seems like
> complete overkill.
>
> Can anyone help?
>
> TIA
>
> Jon
>

Jon,

I think what you are experiencing is poor editing or formatting of the log files 
when they were saved, are these log files created and then placed in a file?  Or 
are they stored in the directory you currently have them?

Thanks,
Dan 


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message