View Single Post
  #8  
Old 25th August 2008, 17:06
Luckyfox Luckyfox is offline
Junior Member
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fixed

Quote:
Originally Posted by jchaven View Post
Did not work.

Here is what I did:
debian:/usr/sbin# a2enmod include
Module include installed; run /etc/init.d/apache2 force-reload to enable.
debian:/usr/sbin# apache2ctl -k restart

Here is what is in test.shtml:
<TITLE></TITLE>
</HEAD>
<BODY>
THIS IS TEST.SHTML
<HR>MENU:<br>
<!-- #include file="menu.html" -->
<HR>FILE 1:<br>
<!-- #include virtual="/mrtg/file1.html" -->
<HR>FILE 2:<br>
<!-- #include virtual="http://221.21.21.4/mrtg/file2.html" -->

this is the end
</BODY>
</HTML>


The output is all the HTML including rules. Nothing in the html files appears.

Thanks for your help!
Joey
I know this might sound obvious but I missed it Make sure you use single quotes not double quotes eg:

<!-- #include file="menu.html" --> = Wrong
<!-- #include file='menu.html' --> = CORRECT

Worked for me

Nigel
Reply With Quote