CSS displayed as text for virtual host

This is a discussion on CSS displayed as text for virtual host within the Linux Networking forums, part of the Linux Forums category; Hope someone can help with this. We have a virtual host shown below. In the document is an index.html ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2004
pragmatist
 
Posts: n/a
Default CSS displayed as text for virtual host

Hope someone can help with this. We have a virtual host shown below.
In the document is an index.html and luxborough.css. When the site is
accessed the css file appears in the browser as text. Deleting the
css file caused an error message "unable to find luxborough.css".


NameVirtualHost 192.168.1.10
<VirtualHost 192.168.1.10>
#ServerPath /luxborough
ServerName www.luxborough.com
DocumentRoot /var/www/html/luxborough
</VirtualHost>

Should I be using a directive to prevent the css being the default ?
Or is there some other error ? We have tried both
"www.luxborough.com" and just "luxborough" in the Server Name.

Expect this is a dumb question but it's driving us potty. All help
most gratefully received.
Reply With Quote
  #2 (permalink)  
Old 07-28-2004
Pat Crean
 
Posts: n/a
Default Re: CSS displayed as text for virtual host

pragmatist wrote:

> Hope someone can help with this. We have a virtual host shown below.
> In the document is an index.html and luxborough.css. When the site is
> accessed the css file appears in the browser as text. Deleting the
> css file caused an error message "unable to find luxborough.css".
>
>
> NameVirtualHost 192.168.1.10
> <VirtualHost 192.168.1.10>
> #ServerPath /luxborough
> ServerName www.luxborough.com
> DocumentRoot /var/www/html/luxborough
> </VirtualHost>
>
> Should I be using a directive to prevent the css being the default ?
> Or is there some other error ? We have tried both
> "www.luxborough.com" and just "luxborough" in the Server Name.
>
> Expect this is a dumb question but it's driving us potty. All help
> most gratefully received.



More than likely (especially if the site works with internet explorer and
fails with anything else), adding this line to your virtual host config
will fix the problem:

AddType text/css .css


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0