先停服务在修改httpd.conf,备份下
Apache\Apache24\conf
设置httpd.conf
LoadModule ssl_module modules/mod_ssl.so 取消该命令前的注释符#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
取消该命令前的注释符#
加入html
AddType text/html .html
AddOutputFilter INCLUDES .html
搜索Options Indexes FollowSymLinks改为: Options Indexes FollowSymLinks INCLUDES IncludesNOEXEC
测试
htdocs\index.html
<!-- #config timefmt="%y年%m月%d日"-->
<p>Date = <!--#echo var = "date_local" --></p>