Questions tagged «server-side-includes»

1
SSI包括无法在Apache上使用Debian
我正在尝试让SSI在运行Apache的Debian上运行,但是.shtml文件没有被解析。从PHP文件中,phpinfo()我可以看到已加载的模块部分中显示以下内容: mod_mime_xattr mod_mime mod_mime_magic 在/etc/apache2/mods-enabled/mime.conf我有(其中包括): AddType text/html .shtml AddOutputFilter INCLUDES .shtml 在/etc/apache2/sites-enabled/domain.com.conf(对于有问题的虚拟主机)中,我有: <Directory /home/username/public_html> Options +Includes allow from all AllowOverride All </Directory> 为了很好地衡量,我还添加了以下内容: <Directory /> Options +Includes </directory> 在用户的.htaccess文件中,我尝试添加: Options +Includes AddType text/html shtml AddHandler server-parsed shtml 似乎没有任何作用。我该如何调试呢? 编辑: ls /etc/apache2/mods-enabled/如果有帮助,这里是输出 actions.conf dav_svn.load proxy_balancer.load actions.load deflate.conf proxy.conf alias.conf deflate.load proxy_connect.load …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.