Apache occasionally serving CSS files as plain text

Apache occasionally serving CSS files as plain text

Post by c.. » Wed, 21 Jun 2000 04:00:00



In our pages we use cascading style sheets. These are specified with
this directive:  <link rel="stylesheet" type="text/css"
href="/sub.css">

Basically, every once in a while apache will serve up cascading
style
sheets as text rather than as part of the HTML page (and the URL in the
navigation bar will be:  xxx.internap.com/sub.css rather than the page
you were trying to load). What seems to happen is that apache stops
serving up anything after the .css (so if normally there are gifs, etc.
to be loaded after the .css, these are not loaded and the page 'stops'
with the cascading style sheet.). For example (from the access_log):

213.226.22.149 - carl [14/Jun/2000:22:16:21 +0000]
"GET
/apps/colo/TEST/AdminMenu.htm HTTP/1.0" 200
8488
213.226.22.149 - carl [14/Jun/2000:22:16:24 +0000]
"GET
/apps/colo/TEST/EditFacility.htm HTTP/1.0" 200
12598
213.226.22.149 - carl [14/Jun/2000:22:16:24 +0000] "GET
/sub.css HTTP/1.0" 200 358

Oddly this problem happens *only* with the debian distribution of apache
(debian distribution of linux 2.2 x86, apache v1.3.6, latest mod_perl).
The same content will work just fine with the libc5 apache (same
version) The problem is *very* intermittent and seems particularly
attracted to Netscape.

Has anyone heard of this? Is it a configuration issue? Browser issue?
This is driving us crazy.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. NCSA httpd: serving files as text/plain

Running NCSA httpd 1.5.1, I need to know how to cure the problem below:

I have plain text files I access via an NSF mount to a Novell network and
serve on my server.  I've defined the extenstions .txt, .dat, .sas
to be text/plain rather than text/html in srm.conf:

DefaultType text/plain
AddType text/plain .sas
AddType text/plain .txt .lst .dat

Yet, these files are served as text/html (lines are wrapped) *iff*
the execute bit is set.  And, unfortunately, files on a Novell server
seem to look to unix as executables whenever they are backed up
(archive bit --> execute)

friendly/sas_pavlov [161] % ll
total 22
-rwx---r-x  1 friendly     152 Sep  9 08:55 goptions.sas*

faculty/friendly [163] % webget -head  
http://hotspur.psych.yorku.ca/pavlov/goptions.sas
HTTP/1.0 200 Document follows                  
Date: Tue, 16 Sep 1997 ? GMT
Server: NCSA/1.5
Content-type: text/html

If I turn off the execute bit, they are served as text/plain:
friendly/sas_pavlov [165] % chmod -x goptions.sas
friendly/sas_pavlov [166] % webget -head  
http://hotspur.psych.yorku.ca/pavlov/goptions.sas
HTTP/1.0 200 Document follows                  
Date: Tue, 16 Sep 1997 ? GMT
Server: NCSA/1.5
Content-type: text/plain
Last-modified: Tue, 09 Sep 1997 ? GMT
Content-length: 152

Is there any way to convince NCSA httpd that I really want them served
as text/plain regardless of how the -x bit is set?

--

Psychology Dept
York University      Voice: 416 736-5118  Fax: 416 736-5814
4700 Keele Street    http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT  M3J 1P3 CANADA

2. Help! Want to run X at 1280x1024

3. Apache and IE: viewing plain text log files

4. harddisk problems

5. Apache 1.0.3 serves *.htm files as text.

6. Need help with ZIP drive and mtools 3.8 on NetBSD-Sparc

7. VirtualHost enabled causes Apache to crash Content-Type: text/plain; charset=us-ascii

8. Fix char/raw.c to build as module]

9. text/plain text plugin necessary?

10. Apache 1.0.3 forces all docs to text/plain

11. Apache sending .htm as plain text...

12. Apache servering up page as plain/text

13. Why do Netscape display plain text on apache?