Apache2 ignores CSS files
I have "documentroot" set as /var/www/html with index.html in this directory. This index.html points to a css file in /var/www/html/u1/.
When I load index.html through the browser it displays correctly but when I access it through apache2 it does not render the css file.
Could anyone suggest how to fix this?
This sounds like a path problem not an Apache problem.
In your html file how are you accessing the css file?
Look in your Apache logs to see what the actual path of the CSS file it is requesting. If it cannot be found you will see a 404 error.
Yes the log shows a path error. I should have been more careful. Thank you for your help
I'm getting confused now, the error just mentioned had been corrected. I am testing different systems with different apache2 configurations. I had to write the correct config file to /etc/apache2/ and I am getting something else I can't work out:
lt:/home/rene# /etc/init.d/apache2 restart
Forcing reload of web server: Apache2[Thu Dec 29 23:47:45 2005] [warn] NameVirtualHost *:0 has no VirtualHosts
[Thu Dec 29 23:47:46 2005] [warn] NameVirtualHost *:0 has no VirtualHosts
I'll obviously have to fix this before I can check the previous problem, if nobody can help, I'll make a new post.
|All times are GMT -5. The time now is 10:20 PM.|