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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 |