Questions tagged [server-side-includes]

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.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
1k views

PHP SSI with NGINX

I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as: <!--#include virtual="/some_file.php" --&...
Dmitry Minkovsky's user avatar
1 vote
1 answer
539 views

IIS 6.1 Handlers for HTML, ASP, INC files

I have a legacy website in which .HTML, .ASP, and .INC files are being used. Problem is all pages have VBScript code not parsed by IIS and thus written on page as static text. I want to fix it. All ....
user138897's user avatar
0 votes
0 answers
140 views

nginx not running ssi commands in .shtml file

I can't figure out why SSI is refusing to run. I'm on nginx 1.25.2, on Ubuntu 22.04 server { listen x.x.x.x:443 ssl; listen [::]:443 SSL; # other lines include /home/...
Andrew Newby's user avatar
  • 1,154
0 votes
1 answer
103 views

Get file exif data in NGINX

In the following code I'm setting some variables with info about the image (like the title, URL, etc.) location /photo { ssi on; ssi_last_modified on; set $photosrc /photos/$...
StuckDuck's user avatar
0 votes
1 answer
456 views

Showing images using a template .html file in NGINX

I'm using nginx to run my website's server. I'm currently using SSI (Server Side Includes) to have a common across the HTML files on my website which is working fine right now. So now I want to have ...
StuckDuck's user avatar
0 votes
0 answers
333 views

Transfer Compression with Cloudfront and nginx SSI

Is there any way to enable GZIP / Brotli compression on Cloudfront if the origin is a nginx server with SSI (Server Side Includes) enabled? The issue seems that nginx SSI drops the Content-Length ...
rauberdaniel's user avatar
0 votes
0 answers
666 views

nginx gzip not working for ssi

I tried setting up gzip compression for server side included files in nginx. I have enabled gzip compression in nginx.conf This is the configuration that I have used: gzip on; gzip_vary on; ...
KSB's user avatar
  • 1
0 votes
0 answers
645 views

nginx SSI include, coming up as corrupts code?

I'm trying to get some SSI calls setup on a .html page with nginx. The following works fine: <center><!--# include file="total.txt" --> <br /><br /><a ...
Andrew Newby's user avatar
  • 1,154
0 votes
1 answer
186 views

Adding SSI support causes mod_dir "trailing slash" redirect to stop working

I have enabled SSI using the following directives in .htaccess AddHandler server-parsed .html AddOutputFilter INCLUDES html However when I add these, the trailing slash redirects stop working. For ...
freethinker's user avatar
0 votes
2 answers
290 views

Enable Server Side Include for Apache on Extensionless URI?

Does anyone know how to enable SSI for URIs such as http//domain.com/page ? (It is straightforward to enable SSI for URIs that have extensions, such as http//domain.com/page.html or http//domain.com/...
iloveponies's user avatar
-1 votes
1 answer
721 views

Nginx Server Side Includes and url rewrite

I'm trying to do something that looks very difficult for me. I need to embed a live blog remote HTML url inside my rails app and I don't want to use iframes for SEO. I'm trying to use SSI. I ...
Roberto Pezzali's user avatar