打开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,搜索结果: 修改为:
AddType text/html .shtml AddOutputFilter INCLUDES .shtml Options Indexes FollowSymLinks includes
保存httpd.conf,重起apache即可。