Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] apache2 and css rendering
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Mon Aug 31, 2009 2:02 pm    Post subject: [solved] apache2 and css rendering Reply with quote

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
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 552
Location: Brazil

PostPosted: Mon Aug 31, 2009 3:58 pm    Post subject: Reply with quote

It would help if you could provide an URL to the site.
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Mon Aug 31, 2009 9:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Wed Sep 02, 2009 9:20 am    Post subject: Reply with quote

even a dsl problem... :cry:
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
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Thu Sep 03, 2009 4:59 pm    Post subject: Reply with quote

dsl problem solved... http://78.12.91.144

thanks!
_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 552
Location: Brazil

PostPosted: Thu Sep 03, 2009 9:09 pm    Post subject: Reply with quote

From the CSS response headers:
Content-Type: text/plain

That's probably the problem.
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Thu Sep 03, 2009 9:55 pm    Post subject: Reply with quote

...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
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Fri Sep 04, 2009 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Fri Sep 04, 2009 11:20 am    Post subject: Reply with quote

i've just re-emerged apache, http.conf has changed and now mod_mime can be loaded correcly.

but the css problem remains... :cry:

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
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Fri Sep 04, 2009 11:55 am    Post subject: Reply with quote

the site is now reachable here http://www.lorenx.com
_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
dindras
n00b
n00b


Joined: 07 Nov 2006
Posts: 31
Location: Vilnius, Lithuania

PostPosted: Fri Sep 04, 2009 12:20 pm    Post subject: Reply with quote

In my box I have:

/etc/apache2/modules.d/00_mod_mime.conf

Code:
DefaultType text/plain
TypesConfig /etc/mime.types


/etc/mime.types

Code:
text/css                                        css
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Fri Sep 04, 2009 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum