我在网上find了信息,但是对我来说没有意义。 我想知道我应该进入哪些文件,以及我应该在哪里以及如何修改它们。
这必须启用(或等效于您的操作系统):
LoadModule include_module libexec/apache22/mod_include.so
这些标准方法添加了这些:
AddType text/html .shtml AddHandler server-parsed .shtml #This one goes in the <Directory> directive you want them enabled for (ie "/") Options +Includes
或者–x位破解:
XBitHack on
这最后一个允许您保留正常的html名称,但chmod o+x file.html并启用SSI仅用于该文件。
其他人都指向文档的旧版本 : Apache mod_include Docs
AddHandler服务器parsing.shtml
这表明应该parsing在该位置(或其后代)中以“.shtml”结尾的所有文件。 请注意,使用“.html”将会导致所有正常的HTML文件被parsing,这可能会给服务器带来非正常的负载。
取自: http : //httpd.apache.org/docs/1.3/misc/FAQ.html#ssi-part-i
http://httpd.apache.org/docs/1.3/misc/FAQ.html#ssi-part-i
有关更多信息,请参阅http://www.apacheweek.com/features/ssi
请记住,如果你的主机已经决定让SSI无法使用,那么这是没有办法的。