Networking Forums

Networking Forums > Computer Networking > Linux Networking > CSS displayed as text for virtual host

Reply
Thread Tools Display Modes

CSS displayed as text for virtual host

 
 
pragmatist
Guest
Posts: n/a

 
      07-28-2004, 01:47 PM
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
 
 
 
 
Pat Crean
Guest
Posts: n/a

 
      07-28-2004, 05:55 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
name based virtual host query.cdac@gmail.com Linux Networking 2 04-18-2007 12:04 PM
problem accessing virtual host from windows xp linux_learner Linux Networking 6 04-11-2007 06:27 PM
Virtual host question Ron Abramson Linux Networking 5 11-22-2004 01:43 PM
Virtual (but MASQueraded) Linux host? Robert Berry Linux Networking 0 10-16-2003 09:26 PM
Virtual (but MASQueraded) Linux host? Robert Berry Linux Networking 0 10-16-2003 09:26 PM



1 2 3 4 5 6 7 8 9 10 11