Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the Web. The most frequent use of SSI is to include the contents of one or more files into a web page on a web server.
I'm trying to get SSI to work on Debian running Apache, however the .shtml files are not being parsed. From a PHP file with phpinfo() I can see that the following show up in the loaded modules section:
mod_mime_xattr mod_mime mod_mime_magic
In…
I am working on a site where I am using SSI to set a variable on an HTML page that gets parsed and the variable is then to be picked up by a script after a mod_rewrite rewrite. This works on my local setup, but for some reason it doesn't on the…
I want to include a header in a bunch of pages, like so:
header.html:
My site
To enable a page-specific title, I'm trying to use an SSI variable that I set in each page:
page1.html:
When I view test.html live in my browser, myFile.html is being…
I'm working on a website, implemented as shtml, and when I try to load the home page (http://simplyclassicremodeling.com) from IE8, it says it can't open the file because it transferred as Content-Type "text.html". The page loads fine from Chrome,…
I have a site built with static html files and I need to add a segment of markup to every page. The natural choice to accomplish this is to use server-side includes (SSI).
The SSI handler does not map to .html files by default, so I'm left with 2…
so i have an apache-2.4.25 (as packaged in Debian/stretch), and would like to use SSI's exec method.
Unfortunately this gives me an error:
[an error occurred while processing this directive]
In the logfiles it says
unknown…
I'm having trouble getting SSI to work on NGINX. You can see the problem if you hit http://www.bakerycamp.com/test.shtml. Here is the contents of that file:
If you hit this in a browser, you see the SSI directive in the content…
I would like to know if there is a way to include PHP files from Virtual Directory to a PHP file in site's root.
For example I have siteroot:
siteroot\index.php
siteroot\other.php
and a separate userconfig dir, containing client's individual…
I am using nginx for caching requests from the upstream apache server, however I want few blocks inside to be fetched from apache all the time. I am hoping ssi can do this, but the SSI tags are outputted to the user without being preprocessed.
…
I'm attempting to set up Apache such that various error pages display with headers/footers appropriate to the context of the error. If the user was requesting a corporate page, I want to show the error with the corporate look and feel. If the error…