paladin256
Technical User
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="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>This is the test area</p>
<p> <!--#include virtual="bob.txt" -->
</p>
<p> </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 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="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>This is the test area</p>
<p> <!--#include virtual="bob.txt" -->
</p>
<p> </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>