Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02BD811B17 for ; Sat, 11 May 2013 09:19:12 +0000 (UTC) Received: (qmail 34787 invoked by uid 500); 11 May 2013 09:19:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 34639 invoked by uid 500); 11 May 2013 09:19:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 34599 invoked by uid 99); 11 May 2013 09:19:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 09:19:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [212.227.126.187] (HELO moutng.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 09:19:00 +0000 Received: from [192.168.0.104] (ip-178-202-199-218.unitymediagroup.de [178.202.199.218]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0Letzz-1UBhUD1Y59-00qhT3; Sat, 11 May 2013 11:18:18 +0200 Message-ID: <518E0CD4.3090401@ecker-software.de> Date: Sat, 11 May 2013 11:18:12 +0200 From: David Ecker User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@httpd.apache.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:8WC70cAyh4iPn7XSFRTSkXkuf7HmQsFpAtfPVep5sbv MUGJFweyzSzLedTaRlJq37NM/XCjKpHLnOIDhY5ZPz+f9dyHhT qniPDRzyL2z7ba8SJ6HgNOZx1tKiZJGftdxUn4AcLXxeimENY5 iYimiatV8Hfg/HJCDcLEz6jpf4E77NAGjoRLkvMNwqIk/+VrBw voE8jL0QRVQgvFRh8FbpBhOvl57Clar7h1yhVC57KAXnwSTk6F kJNKROzxz6e/X8+ud8pRH0WSxmYyLdW0mkFRcwUMmpI6mtAkag ayq+0/BaqfH73ujWbQRNgnVNFPxSdSd2r6DvFagAfYRx7RTjhs nPh4cba5699wzGirqrW5eDzzlGcoH3nsBDvtSnTMb X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] File renders differently when opened through Apache or direct, why? See http://httpd.apache.org/docs/current/mod/mod_mime.html You are propably using a wrong mime type which is set by apache based on the file extension. bye David Am 11.05.2013 10:58, schrieb Bo Berglund: > I have a PHP logging script, which produces a file on the server in a > logging directory. In order to make the file easier to read through a > browser I have made the PHP script create each log line as a table row > in a table. I let the script write the file header when the logfile is > created as follows: > > > > > > > > > > > > Then for each access I append one line with info like the following > example from my test server (it is actually on a single line, but for > easier reading here I have cut it into lines for each column in the > table): > > > > > > > > > > Now I wanted to look at the logfile via my webserver so I entered the > local URL (/logs/testpage2013-05.log) into > FireFox and what was shown was the above *source* text rather than the > expected table! > But if I open the exact same file directly in FireFox, bypassing > Apache, then the table displays as intended! > Why is this happening? > > I know that the file is open ended such that it lacks the closing >
TimestampUsernameIP addresshostnamePage accessedReferring pageServername
2013-05-11 10:40:14Unknown User10.0.0.159AURIGAcurrentpagesourcepageservername
tags but that seems not to be a problem when > viewing the file as a file:// URL in FireFox, so why does it happen > through Apache? > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org