Front-end - Accessing an HTML file in the Apache document directory turns into downloading the page?
某草草2017-05-16 17:00:38
0
1
654
After installing Apache 2.2, I put the HTML file in the directory to access it, but instead downloaded the HTML file directly and could not browse the page normally. What is the wrong configuration?
The mime type is not configured.
That is, there is no corresponding relationship between the configuration file extension and the file type.
When you see the http header changes to
content-type:text/html
, it means it is normal.