View previous topic :: View next topic |
Author |
Message |
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Mon Aug 31, 2009 2:02 pm Post subject: [solved] apache2 and css rendering |
|
|
hi all,
my new apache2 installation cannot see css files correcly.
i tried both text/css and application/x-httpd-php mime-types;
i checked css file permissions;
i ensured also that the browser retrives them with a 200 response;
although those controls my site renders with no css styles at all.
thanks for any advice... _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Last edited by commandline on Fri Sep 04, 2009 12:25 pm; edited 1 time in total |
|
Back to top |
|
|
saboya Guru
Joined: 28 Nov 2006 Posts: 552 Location: Brazil
|
Posted: Mon Aug 31, 2009 3:58 pm Post subject: |
|
|
It would help if you could provide an URL to the site. |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Mon Aug 31, 2009 9:59 pm Post subject: |
|
|
sure! temporarily (a ddclient problem) is http://78.12.99.10
thank you _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Wed Sep 02, 2009 9:20 am Post subject: |
|
|
even a dsl problem...
i'll update the post when i'll be reachable again.
sorry... _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Thu Sep 03, 2009 4:59 pm Post subject: |
|
|
dsl problem solved... http://78.12.91.144
thanks! _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
saboya Guru
Joined: 28 Nov 2006 Posts: 552 Location: Brazil
|
Posted: Thu Sep 03, 2009 9:09 pm Post subject: |
|
|
From the CSS response headers:
Content-Type: text/plain
That's probably the problem. |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Thu Sep 03, 2009 9:55 pm Post subject: |
|
|
...but in the /etc/apache2/modules.d/00_mod_mime.conf file i have
Code: |
AddType text/css .css
|
_________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Fri Sep 04, 2009 10:24 am Post subject: |
|
|
partial problem solved, i think...
i've just discovered that the mod_mime.so module didn't load with apache.
the problem is now that if i put the Code: |
LoadModule mime_module modules/mod_mime.so
|
directive, apache does not start... _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Fri Sep 04, 2009 11:20 am Post subject: |
|
|
i've just re-emerged apache, http.conf has changed and now mod_mime can be loaded correcly.
but the css problem remains...
i got Code: |
AddType text/css .css
|
but they render as plain/text _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Fri Sep 04, 2009 11:55 am Post subject: |
|
|
the site is now reachable here http://www.lorenx.com _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
dindras n00b
Joined: 07 Nov 2006 Posts: 31 Location: Vilnius, Lithuania
|
Posted: Fri Sep 04, 2009 12:20 pm Post subject: |
|
|
In my box I have:
/etc/apache2/modules.d/00_mod_mime.conf
Code: | DefaultType text/plain
TypesConfig /etc/mime.types |
/etc/mime.types
|
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Fri Sep 04, 2009 12:22 pm Post subject: |
|
|
unbelieveble...
i delete Code: |
AddType text/css .css
|
and now it works!
thank you! _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
|