Nested Server Side Includes

Giganews Newsgroups
Subject: Nested Server Side Includes
Posted by:  Ten Blade (ten.bla…
Date: Sat, 14 Apr 2012

I'm just in the midst of putting a client's website on a professional
hosting service and am encountering an odd problem. I can do Server Side
Includes but not NESTED Server Side Includes. Can anyone here suggest a
way to resolve this problem?

Basically, I want to have two or three levels of SSIs. My HTML pages will
contain both normal HTML statemenet and includes that embed other partial
documents. Those partial documents will, in turn, embed OTHER partial
documents. I've used this technique successfully on other servers but for
some reason, only the highest level includes, those in the HTML
documents, work. The SSIs that are nested within the lower level
documents are simply ignored.

I've checked the documentation on the hosting service and they swear they
allow SSI but don't say anything about NESTED SSI. In the past, I've
never had any problem getting nested SSI to work if SSI was supported in
the first place so I'm not sure what to do here.

I'm guessing that I need an .htaccess file with specific directives in
it. At the moment, this is my .htaccess file:

AddType text/html .shtml
AddHandler server-parsed .shtml

However, I'm not sure if the server is actually using Apache or one of
the alternatives. Can someone tell me a way to figure that out? They have
several forms of tech support but their support is TERRIBLE, at least
today. (They were better earlier in the week when we had a problem with
the account.) So I thought I'd try here in the hopes of resolving my
problem sooner. If I get no joy here, I'll contact them again on Monday
and hope that they are more helpful then.

In the meantime, if you can tell me how to get my nested Server Side
Includes to work, I'd be grateful.

For bonus points, I'd love to know how to tell whether a given site is
using Apache or one of the alternatives ;-)