View previous topic :: View next topic |
Author |
Message |
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Tue Jan 09, 2007 7:25 pm Post subject: ssi #include does not work |
|
|
I'm running Abyss Web Server X1 (v2.3.2) a few months now. Everything works excellent.
Totday i i tried to use SSI
My index.html contain besides the other code:
<!-- #include file="menu.shtml" -->
and
<!-- #include file="voet.shtml" -->
In my host SSI processing was enabled already. The extension shtml is listed at the Associated Extensions.
When viewing the page index.html with a browser the content of both shtml-files is now shown.
Am i doing something wrong? |
|
Back to top |
|
|
Marty -
Joined: 10 Sep 2006 Posts: 83
|
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Jan 09, 2007 7:32 pm Post subject: |
|
|
Thats what an SSI does. What did you expect it to do? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Tue Jan 09, 2007 7:38 pm Post subject: |
|
|
Thanks for replying.
I expected ssi to show the content of menu.shtml and voet.shtml.
About index.shtml: can i just copy my index.html (containing the two #include file) to index.shtml? |
|
Back to top |
|
|
Marty -
Joined: 10 Sep 2006 Posts: 83
|
Posted: Tue Jan 09, 2007 7:44 pm Post subject: |
|
|
rommie wrote: | Thanks for replying.
I expected ssi to show the content of menu.shtml and voet.shtml.
About index.shtml: can i just copy my index.html (containing the two #include file) to index.shtml? |
You talking to me :)
You need to add index.shtml to the Index Files listings on your control panel (second top left Icon) you add it as index.shtml like the rest index.html and index.php and so on... ie: your not adding the file name but the extention. _________________ www.web-bin.com | www.skydigitalcards.com |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Tue Jan 09, 2007 7:56 pm Post subject: |
|
|
i understand
i added "index.shtml" to the Index Files-listing of my host and restarted it. But it still does not work.
btw my htdocs-folder does not contain a file called index.shtml |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Jan 09, 2007 7:57 pm Post subject: |
|
|
rommie wrote: | i understand
i added "index.shtml" to the Index Files-listing of my host and restarted it. But it still does not work.
btw my htdocs-folder does not contain a file called index.shtml |
Rename index.html to index.shtml _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Tue Jan 09, 2007 8:01 pm Post subject: |
|
|
i deleted the index.htm and renamed identical index.html to index.shtml.
It still does not work! |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Thu Jan 11, 2007 11:52 am Post subject: |
|
|
SSI still doesn't work.
I read the messages on this forum and the online help about this subject.
Can anyone tell me where to find a tutorial/e-boot/website containing examples/troubleshooting SSI on Abyss Web Server X1? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jan 11, 2007 2:49 pm Post subject: |
|
|
rommie,
The file name extension should be .shtml to have it processed as SSI.
Do a test with a file test.shtml containing:
Code: | <HTML>
<BODY>
<PRE>
<!-- #printenv -->
</PRE>
</BODY>
</HTML> |
Do you see it display a long list of lines of the form?
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Thu Jan 11, 2007 5:30 pm Post subject: |
|
|
I put the .shtml-file on the server and requested the file in my browser
I see a long list (more than one page) starting with
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
and ending with
DOCUMENT_NAME=test.shtml |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Jan 11, 2007 5:33 pm Post subject: |
|
|
That means that SSI is working.
What you see from #printenv, is the Server's Environment Variables
list, which can be used in your SSI enabled pages.
outputing an Environment variable:
Code: | <!-- #echo var="REMOTE_ADDR" -->
|
Will output your IP Address |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Thu Jan 11, 2007 5:54 pm Post subject: |
|
|
I discovered one thing: i did not use the <pre></pre> tags.
My website consists of about 10-html pages (.html). Each page calls menu.shtml and voet.shtml. Should i rename *.html to *.shtml? I this the clue? Should both files to include AND files calling the to includefiles be renamed to the .shtml-extension? |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Jan 11, 2007 6:37 pm Post subject: |
|
|
Yes, or you can add "html" as an Associated Extension for SSI. |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Thu Jan 11, 2007 8:16 pm Post subject: |
|
|
Ok, i'll try it. I will rename all *.html to *.shtml.
Do you advise me to remove index.htm/html from "Index Files" in the host configuration?
10minutes later:
I get bored about this.
I renamed *.html to *.shtml
I added index.shtml to "Index Files"
My SSI is enabled and *.shtml is listed
When i open index.html in my browser the two "file includes" don't show up. So a window without header and footer.
Help !!! |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Sat Jan 13, 2007 4:00 am Post subject: |
|
|
Rommie, what happens if you access /index.shtml? If you're going to use shtml files for index files, either increase the priority of shtml index files or delete html and htm from the index files list.
Also, make sure your SSI includes are formatted properly. Notice how they are different from HTML comments. (Look at where the spaces are -- and aren't.)
Code: | <!--#include virtual="/Header.txt"--> |
Notice how my example (above) differs from your first post.
Code: | <!-- #include file="menu.shtml" --> |
Good SSI information here --> http://bignosebird.com/ssi.shtml
(To clear up a little confusion from previous posts, my SSI files are text files. The text files contain HTML, and show up just like they're supposed to in my pages. You don't have to make the extensions of your SSI files one of the associated extensions for SSI parsing in Abyss.) _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
|
rommie -
Joined: 24 Oct 2006 Posts: 13
|
Posted: Sat Jan 13, 2007 10:49 am Post subject: |
|
|
Thanks everyone for helping me. Despite all the help i wasn't able to get my website running with SSI.
My goal was making maintaining my website more easy by not having to change every webpage when changing the menu or the footer. Of course there are more ways to do this.
I use Frontpage 2003 for designing my website. I converted my complete website this week using the Dynamic Web Template option. This works good till now. The only disadvantage is that when i choose another designprogram, i have to redesign my website again. |
|
Back to top |
|
|
|