我在 ubuntu 上只安装了普通版 apache2。如何让它解析 .shtml 文件?我已经做到了
sudo a2denmod include
并编辑 /etc/apache2/sites-enabled/000-default,因此它说
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Options +Includes
AddType text/html .shtml
AddHandler server-parsed .shtml
</Directory>
而且当然
sudo service apache2 restart
但当我进入 .shtml 页面时仍然会得到
#include 'app_id' #include '/engine/include/fb_jssdk.include' #include '/engine/include/core.include'