Closed Bug 263174 Opened 20 years ago Closed 20 years ago

CSS not read when reading pages served by Lighttpd running on Gentoo Linux

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: n.s.aziz, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7

Sample of html header where the CSS files is not read:

<html>
<head>
  <title>XOOPS Custom Installation</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <style type="text/css" media="all"><!-- @import url(../xoops.css); --></style>
  <link rel="stylesheet" type="text/css" media="all" href="style.css" />
</head>

This page is displayed fine on IE6.0(boo) and Opera 7.11.

Reproducible: Always
Steps to Reproduce:
1. Require Lighttpd server v1.2.2, php-cgi4.3.8
2. Gentoo Linux
3. Xoops CMS
4. Any page generated by Xoops does is not displayed correctly due to the CSS
not being read.

Actual Results:  
CSS file is not being read
try in firefox 1.0pr please
The same behaviour in firefox 1.0pr
Check the Javascript Console and you'll probably find an error showing that the
CSS isn't loading because it's not being served as text/css.
Sonofagun!!! Bingo!! Absolutely correct. Checked the lighttpd conf file and
indeed .css is not defined there so it must have been sending it using the
default stream of "application/octet-stream".

Solved this by adding ".css" to lighttpd.conf mimetype.assign section, set it to
the correct type and viola! Works a treat.

This is not a Firefox bug but a user error. Thanks to Bill for spotting this one
for me.

PS:Set Resolve bug to INVALID because it is not a Firefox bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.