Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pages are displaying plain text instead of html

I am hosting multiple sites on the same server and using a http-vhosts file to specify virtual host info for them. It is working great. The problem is I changed in Movable Type the way entries are created. I want them to not have file extension. So it is currently domain.com/entry/15 instead of domain.com/entry/15.html. Because I took out the .html I'm assuming apache doesn't know what to do so it is spitting out the page as plain text. How can I fix this? I added in a virtualhost block:

DefaultType text/html

I also added that in the httpd.conf hoping it would fix it globally for all my sites. I restarted apache and still the same problem. Any ideas?

like image 755
user983223 Avatar asked Oct 08 '22 19:10

user983223


1 Answers

Is it possible that this is a content negotiation problem? In a few cases I've seen Apache try to determine what sort of file is being requested by looking at the first few bytes of the file being served.

I have seen problems like this be solved by commenting out mod_negotiation in http.conf and restarting. See the mod_negotiation documentation for more details.

like image 181
Dave Aiello Avatar answered Oct 12 '22 12:10

Dave Aiello