Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI on Apache1.3.26

Status
Not open for further replies.

paladin256

Technical User
Apr 16, 2002
189
US
I am haveing troulbe getting SSI to work. Here is the problem. I can get index.shtml to dispaly but none of bob.txt will come up. Can someone tell me what I m missing?

I have the following setup:

Modules in apache
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_frontpage.c
mod_php4.c

Httpd.conf setup
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml

#
# Uncomment the following line to enable Apache's send-asis HTTP file
# feature
#
AddHandler send-as-is asis

#
# If you wish to use server-parsed imagemap files, use
#
AddHandler imap-file map .map

#
# To enable type maps, you might want to use
#
AddHandler type-map var

<VirtualHost _default_>
DocumentRoot /ServerName test4.mydomain.com
DirectoryIndex index.shtml
IndexOptions FancyIndexing
XBitHack on
Options +Includes
ErrorLog /TransferLog /Options ExecCGI Includes
</VirtualHost>

Contents of index.shtml
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body>
<p>This is the test area</p>
<p>&nbsp;<!--#include virtual=&quot;bob.txt&quot; -->
</p>
<p>&nbsp; </p>
</body>
</html>

Contents of bob.txt
<html>
<head>
<title>bob</title>
</head>

<body>
Bob entered his text here, but he still needs to figure out how to display his image.<br>
This is an example of an HTTP-based include. This is being pulled from a .txt file<br><br>

Two breaks are better than one...


</body>
</html>
 
I think your <!--#include --> lien should read like one of the below:
<!--#include virtual=&quot;/bob.txt&quot; --> or
<!--#include file=&quot;bob.txt&quot; -->
//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top