Home  >  Q&A  >  body text

Front-end - Accessing an HTML file in the Apache document directory turns into downloading the page?

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?

某草草某草草2734 days ago639

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:02:38

    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.

    reply
    0
  • Cancelreply