Forum Moderators: phranque
then I went to httpd.conf and added some lines. Now starting line 317, it reads:
Directory />
Options +Includes
AddHandler server-parsed .html
AddType text/html html
Options FollowSymLinks
XBitHack on
AllowOverride None
/Directory>
note I put html because the file I want to include is named menu.html
then i restarted apache using ./apachectl restart
in my html file I included menu.html by
<!--#include file="menu.html"-->
I am sure the location is right (menu.html is in the same directory as the parent file)
But it still doesn't work. Could someone please tell me what I did wrong? Thank you very much.
Looks like you are missing some opening/closing delimiters ( < > ) there for starters. An example ...
<Directory /usr/local/apache/htdocs/www>
Options +Includes
AddOutputFilter INCLUDES .html
</Directory>
Also, the virtual attribute should always be used in preference to the file attribute:
<!--#include virtual="menu.html" -->