View Single Post
Old 21st September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I've figured it out!

In setting up Apache on OpenBSD, I had two problems. A.) Scripts would not get run (e.g. .php, .pl) and B.) Mozilla browsers would not display the stylesheets. I had more important business to tend to; so I never sorted it. Now I need a local server, so....

I found the cause of problem A. I had conf/httpd.conf loading mime_magic_module, either I hadn't had it configured properly or it was just a bad idea.


In the case of problem B, drhowarddrfine was right -- it must be served as text/css. The only thing he left out was how to enforce it.



According to a little webbing, in standards mode Mozilla tells external stylesheets to piss off, unless the mime type is text/css. I checked the error console in Flock, and guess what it said:

Quote:
The stylesheet http://myserver/spidey01.css was not loaded because its MIME type, "text/plain", is not "text/css"



Out of box OpenBSDs Apache 1.3 was serving CSS as text/plain.

Code:
# httpd.conf
AddType text/css .css



YKYMF !
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote