先停服務在修改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>