232 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
48
views
Configuring SSI in MAMP7
In MAMP6 (which used Apache 2.4.54), configuring server side includes could be done by modifying the httpd.conf file and adding
AddOutputFilter INCLUDES .html
However, in MAMP7 (Apache 2.4.58), this ...
-1
votes
1
answer
499
views
SSI (Server Side includes) don't working on IIS 10 (Windows 11)
IIS configured with Server Side includes
Additionally processing SSI adding to config
IIS handler mapping configured.
SSI file present and I can see it in browser.
But SSI still don't working. And I ...
1
vote
0
answers
146
views
Does apache server SSI (Server Side Includes) support arrays and loops?
I want to generate an array of key-value-paired items and use a looping mechanism to generate a list of content from them in HTML tags format. Is this possible to do it using apache server SSI?
From ...
0
votes
0
answers
107
views
JSP include variable passing
Let's say I have a file called a.jsp which includes another file:
<%
String a = "Test";
%>
...
<%@include file="b.jsp"%>
...
The file b.jsp accesses the variable from ...
0
votes
0
answers
183
views
Cannot execute SSI with file_get_contents on Apache 2.4
I'm working with a very legacy project, made on PHP 5.4. We need to move it over a new server as is, but at the same time, upgrading the web server from apache 2.2 to 2.4, and the OS. SSI works fine ...
0
votes
1
answer
622
views
Is it possible to set http headers from SSI?
I have this configuration for static html pages, where redirects are done from flat files as well:
old-location.html
<!-- {new-location.html} -->
<!DOCTYPE html>
<html>
<head>
&...
0
votes
0
answers
38
views
Classic ASP - Declaring variables in File_1.asp absent in Include File [duplicate]
I have declared a variable and it's value in the head of File_1.asp Before DOCTYPE html
<%
dim strCategory
strCategory="My String"
%>
Then I have an include file inserted in the body
&...
1
vote
0
answers
60
views
Server-side include: An image link breaks within the included contents
Suppose that folder B is inside of folder A.
Folder B contains:
index.shtml
a.html
image.png
And, in index.shtml, I include a line
<!--#include file="a.html" -->
And, image.png ...
0
votes
1
answer
1k
views
Nginx as web server render index html with variables
Issue: I need to modify the response which is HTML. Need to inject data attribute into the response body.
The data attribute value would be the query param/post params.
Having Nginx as a webserver. ...
-1
votes
1
answer
389
views
Split HTML file by <section>, into separate include files? [closed]
I want to split a HTML file, by the <section> tag, into separate files.
An example might be:
mypage.html
<!DOCTYPE html>
<html>
<head>
...
</head>
<...
0
votes
2
answers
242
views
switch case (or if else) to load a file with include in SSI and QUERY_STRING?
In PHP I can use switch case for using a simple function:
<?php
switch($_SERVER['QUERY_STRING']) {
case 'example1':
include 'example1.php';
break;
case 'example2':
include 'example2.php';
break;
...
0
votes
1
answer
105
views
IIS Server Side Includes do not show on mobile
I have IIS 7 and Server Side Includes work fine in all desktop browsers. But when I try on mobile (iPhone or Android) they don't show. Code extract:
<body>
<!--#include file="Header....
0
votes
0
answers
35
views
Is there a way to call a Server Side Include for Desktop but not Mobile?
This is my code. It pretty much tests if the person is on mobile then if they aren't it appends the server side include. This doesn't work in testing (SSI just executes in java script or won't append (...
0
votes
0
answers
101
views
SimpleHtmlDom + multiple urls + include GET
I have two pages. list.php and userinfo.php.
list.php scrapes a list of users from another website and gets three strings: $id, $nick and $level, while the other one, userinfo.php?id=id, uses the id ...
0
votes
1
answer
300
views
IIS 10.0 SSI error: #EXEC calls have been disabled for this virtual path
My IIS skills leave a lot to be desired but I've been asked to enable the SSI #exec directive for someone and I'm running into a problem: I can get SSI #echo to work, and I have this in both the ...
user avatar
user210158