简体   繁体   English

ssi文件上方的报价

[英]Quotations above ssi file

I have installed Apache 2.2 on windows. 我已经在Windows上安装了Apache 2.2。 I have turned on Includes and my shtml files include their respective html files. 我打开了Includes,我的shtml文件包括了它们各自的html文件。

Problem I am having is above each include file are two quotation marks " ". 我在上面的问题每个包含文件都是两个引号“”。

<body>
<!--#include virtual="/includes/Header.html" -->
</body>

renders 渲染

<body>
" " 
html header from include
</body>

Possible solutions: 可能的解决方案:

1) Remove the / before includes in <!--#include virtual="/includes/Header.html" --> 1)删除<!--#include virtual="/includes/Header.html" -->/之前的/

2) Supposing that the file which contains the include directives have also the .html extension, and calling your working folder C:/workingfolder , did you set the httpd.conf file as follows? 2)假设包含include指令的文件也具有.html扩展名,并调用您的工作文件夹C:/workingfolder ,您是否按以下方式设置了httpd.conf文件?

<Directory "C:/workingfolder">
    Options Indexes FollowSymLinks Includes
    ...
</Directory>

AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM