Apache cannot parse HTML content

Source: Internet
Author: User

After installing the apache2.0.63,20..html file this day, the file cannot be parsed and the HTML file is directly displayed.Code. I have never encountered such a situation at the beginning. Baidu found a related article.
Based on thisArticleThe method is as follows:
Go to the Apache main configuration file and search "addtype text/html. shtml ":

View plaincopy to clipboardprint?
  1. # Addtype text/html. shtml. html. htm
  2. # Addoutputfilter between des. shtml. html. htm

Remove # from the front of the two rows. Restart Apache to parse the HTML file.

However, Apache configuration has not been modified in this way before, and HTML can be supported normally. I wonder if the root cause is here. Please follow this method for the time being!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.