ssi #include does not work

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Tue Jan 09, 2007 7:25 pm    Post subject: ssi #include does not work Reply with quote

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 View user's profile Send private message
Marty
-


Joined: 10 Sep 2006
Posts: 83

PostPosted: Tue Jan 09, 2007 7:31 pm    Post subject: Reply with quote

Include index.shtml to your Index Files listings
_________________
www.web-bin.com | www.skydigitalcards.com
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jan 09, 2007 7:32 pm    Post subject: Reply with quote

Thats what an SSI does. What did you expect it to do?
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Tue Jan 09, 2007 7:38 pm    Post subject: Reply with quote

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 View user's profile Send private message
Marty
-


Joined: 10 Sep 2006
Posts: 83

PostPosted: Tue Jan 09, 2007 7:44 pm    Post subject: Reply with quote

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 View user's profile Send private message
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Tue Jan 09, 2007 7:56 pm    Post subject: Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jan 09, 2007 7:57 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Tue Jan 09, 2007 8:01 pm    Post subject: Reply with quote

i deleted the index.htm and renamed identical index.html to index.shtml.
It still does not work!
Back to top View user's profile Send private message
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Thu Jan 11, 2007 11:52 am    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jan 11, 2007 2:49 pm    Post subject: Reply with quote

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?

Code:
VARIABLE=something

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Thu Jan 11, 2007 5:30 pm    Post subject: Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Jan 11, 2007 5:33 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Thu Jan 11, 2007 5:54 pm    Post subject: Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Jan 11, 2007 6:37 pm    Post subject: Reply with quote

Yes, or you can add "html" as an Associated Extension for SSI.
Back to top View user's profile Send private message Visit poster's website
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Thu Jan 11, 2007 8:16 pm    Post subject: Reply with quote

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 View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sat Jan 13, 2007 4:00 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
rommie
-


Joined: 24 Oct 2006
Posts: 13

PostPosted: Sat Jan 13, 2007 10:49 am    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group