Apache2 displays html source only with 2.6 kernel
Alright, this is driving me nuts.
I did a fresh install of Apache2 (2.0.55), copied a test .html file to /var/www which is the document root directory, started the server and ran a quick test. When I access a page like http://localhost/index.html it just shows me the html source, i.e it just displays this in my Firefox browser(1.0.7). Code:
<html> I am running 2.6.12 with the testing(Etch) sources.list. This isn't a problem on my other machine running the 2.4 kernel with the same sources.list. How in the heck does 2.6 have anything to do with this? I've tried apache2-mm-prefork and apache2-mm-worker and both have the same problem. **Confused and frustrated.** Thanks, |
It doesn't have anything to do with the kernel version. The HTML headers might help, post them here.
Adding the following to the configuration file might help: Code:
AddType text/html .html Code:
/etc/init.d/apache2 reload |
Doh! Thank you, saman! That did it.
I just assumed(no wonder that's a dirty word) that a default installation would have the .html type handler already configured. In fact on my 2.4 machine that's not in my apache2.conf file either but strangely enough it renders the html just fine. |
All times are GMT -5. The time now is 02:51 AM. |