Forum Moderators: phranque

Message Too Old, No Replies

Apache and .css files

         

sakrina

6:23 pm on May 10, 2006 (gmt 0)

10+ Year Member



just got apache 1.3 on a fedora 5 runing. In a intraweb env.
On the windows 2000 server the attached .css file showed corecctly, but nomore on linux.
<link href='../config/test.css' rel='stylesheet' type='text/css'>

Is there a seperat module i have to load with apache 1.3 or a special handler?

ChadSEO

7:27 pm on May 10, 2006 (gmt 0)

10+ Year Member



sakrina,

Apache can handle CSS files right off the bat. Chances are it simply cannot find the file for some reason. Linux is case sensitive, while Windows is not, so if the file and/or directory is not all lower case, then it would not be able to find it. It could be a permissions issue, depending on how "secure" your Linux environment was setup.

A good test would be to try to access the CSS file directly from your browser. Try to access http://www.example.com/config/test.css (or whatever it is in your case), and see what error message you get.

Chad

sakrina

2:09 pm on May 11, 2006 (gmt 0)

10+ Year Member



Tryed this geting no error.
it just plain text the .css file :(

coopster

2:44 pm on May 11, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I remember this happening once many moons ago on a shared server on which I did some contract work. I think I had to add a MIME type override if I remember correctly. Can't remember all the reasons, etc. but your situation may be the same. Try dropping a per-directory override file (.htaccess) file in place to see if that is your issue:
AddType text/css css

sakrina

2:59 pm on May 11, 2006 (gmt 0)

10+ Year Member



tryed that, still not working. Funny part it worked 1 week ago, then i reinstalled linux, and now nomore.. all the same i think. everthing works except that .css file dont show :(