View previous topic :: View next topic |
Author |
Message |
lewtwo -
Joined: 01 Jan 2011 Posts: 1 Location: US
|
Posted: Sat Jan 01, 2011 7:29 am Post subject: SSI (I am doing something -- possibly everything ---wrong) |
|
|
I wanted a simple web server so I could work on my web site and have a common header/foot .... and maybe a few other common items. SSI <!--#include ...> looked like the appropriate solution. Alas I can not get any SSI directive to work. I admit that the cause of the problem is my gross ignorance and plead for help for anyone who might have mercy on me.
Code: | (index.html) ---------------------------------------
<html>
<head>
<title>Test page</title>
<meta name="GENERATOR" content="NOTEPAD.EXE">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#FFFF00" vlink="#FFFFF0">
The next line should be an included file h1.shtml.
<br>
<!-- #include virtual = "h1.shtml" -->
<!-- #include virtual = "/h1.shtml" -->
<!-- #include virtual = "../h1.shtml" -->
<!--#include virtual = "../h1.shtml" -->
<br>
The next line should be an included file h2.shtml.
<br>
<!-- #include file = "h2.shtml" -->
<!-- #include file = "/h2.shtml" -->
<!-- #include file = "../h2.shtml" -->
<!--#include file = "../h2.shtml" -->
<br>
<!-- #echo var="REMOTE_ADDR" -->
<!-- #printenv -->
<br>
XXX
</body>
</html>
(h1.shtml) ---------------------------------------
<html>
Test Include file (h1.shtml)
</html>
(h2.shtml) ---------------------------------------
Test Include file (h1.shtml) |
The only thing that shows in the browser (Google Chrome and IE8) is:
--------------------------------------
Code: | The next line should be an included file h1.shtml.
The next line should be an included file h2.shtml.
XXX |
--------------------------------------
I searched for SSI on the forum.
XSSI Processing is enabled.
Error Message and Time format String are blank.
XSSI extensions are "shtml, shtm, stm"
XSSI path is "/"
ASP.NET Applications Virtual Path is "/"
Scripting is enabled.
No scripting parameters are set.
Scripting Interpreters, Script paths, Customer Enviroment Variables are Blank.
Operating environment is Windows XP Professional with all services packs and patchs running in a VM under VMWARE workstation 7.1.3.
Any help is very much appreciated. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1300
|
Posted: Sun Jan 02, 2011 3:17 pm Post subject: Re: SSI (I am doing something -- possibly everything ---wron |
|
|
lewtwo,
A file which contents should be processed as SSI must be named with .shtml as its extension. In your example, you've called that file index.html which made it unprocessed by the SSI engine. _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
sborder -
Joined: 17 Apr 2012 Posts: 2
|
Posted: Sun Apr 22, 2012 12:50 am Post subject: |
|
|
The server I'm on I can use "XBitHack on" to allow my html pages to work with SSI. Does XBitHack work with the Abyss server?
Thanks
steve |
|
Back to top |
|
|
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Mon May 07, 2012 2:50 pm Post subject: |
|
|
sborder,
You can achieve the same feature as XBitHack in Abyss Web Server by adding .html and .htm as extensions that are associated with SSI. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|