Questions tagged [ssi]

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.

References

371 questions
138
votes
3 answers

What is the purpose and uniqueness SHTML?

Recently I came to know about SHTML when I saw a site with .shtml extensions. What is the purpose of SHTML, and in what ways does it differ from HTML and DHTML?
balaweblog
  • 14,982
  • 28
  • 73
  • 95
61
votes
3 answers

Is it possible to perform Includes with flask?

Say I have a template layout saved in template.html. This template includes a banner, side navigation, content container, and footer. Can I use flask to break up these page elements in such a way that I can have files such as banner.html,…
Michael
  • 2,031
  • 6
  • 21
  • 27
35
votes
7 answers

How do I run a file on localhost?

How do I actually run a file on localhost? I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost? Server newbie here, additional questions (I have xampp running Apache 2.2): From your…
James Musser
  • 735
  • 5
  • 13
  • 18
11
votes
3 answers

PHP security exploit - list content of remote PHP file?

I'm trying to exploit some web vulnerabilities in a sample website running inside a VM (it is not available on the web - only for educational purposes). I have a php file named setupreset.php which has the information about MySQL configs, setup and…
swiftcode
  • 3,039
  • 9
  • 39
  • 64
10
votes
2 answers

Get URL and parameters with SSI

I have to get URL and parameters with SSI (only with SSI), but I can't find any solution. For example: http://www.test.com/abc.html?data=something And I have to get value of parameter "data".
mesnicka
  • 2,458
  • 8
  • 23
  • 31
10
votes
1 answer

Difference between Server side include and Sling dynamic include?

Can anyone tell me the difference between Server side include and sling dynamic include and their respective use cases ?
Gaurav
  • 259
  • 4
  • 16
9
votes
1 answer

Using server side includes or ssi ,AWS S3

Is there any way to use ssi on cloudfront or or is it categorized as dynamic content? I would like to have sections like a header, nav or sidebar be able to use one file. example:i have some html files,they use the same "header" section,i only want…
user2688100
  • 143
  • 2
  • 5
8
votes
3 answers

Apache regex backreferences UNREACHABLE in httpd 2.4?

I Love the new apache httpd 2.4 with lots of new cool stuff ! ap_expr is one of these new very promising features, ..BUT the following SSI snippet don't work as expected: {{if expr="v('HTTP_SESSION') =~ /-user=([^&]+)/"}} {{set var="user"…
kjetildm
  • 274
  • 3
  • 11
7
votes
1 answer

What's the difference between DOCUMENT_URI and URI_REQUEST in SSI?

When looking at a SSI printenv dump I see a variable URI_REQUEST. When reading the Apache mod_include docs I see DOCUMENT_URI which they define as "The (%-decoded) URL path of the document requested by the user." Anyone know the difference between…
Rob Wells
  • 36,220
  • 13
  • 81
  • 146
7
votes
2 answers

Basic SSI not working

This is doing my nut in. I'm trying to get server side includes to work. The server I'm hosting my site on has SSI enabled and the company that owns the servers said my issue is to do with my code, not to do with their servers. Here's my file called…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
6
votes
4 answers

Good practices for including a menu in a website?

I'm quite new to website building. Yet do have some experience in LaTeX and some other programming languages. I really try and reuse code etc. So, when building my website, I want to "include" for instance the menu in the other pages, in stead of…
romeovs
  • 5,785
  • 9
  • 43
  • 74
6
votes
2 answers

HTML Preprocessor?

Is there a HTML preprocessor that can do simple page processing similar to Server Side Includes, but produce a static set of HTML pages?
C. Ross
  • 31,137
  • 42
  • 147
  • 238
6
votes
2 answers

SSI parser written in PHP?

OK, this might sound a little crazy, but bear with me here for a minute. I'm working on a site where the standard is to use SSI to include page headers, footers, and menus. The included files use SSI conditionals to handle different browsers, some…
Rick Koshi
  • 945
  • 1
  • 11
  • 21
6
votes
0 answers

Avoid showing 404 not found in nginx ssi includes

I'm trying to move to nginx from apache but one of the features I most use in apache are the ssi includes. I'm testing how nginx deal with ssi but I'm having some problems... If an include virtual file doesn't exist I'm getting a 404 page embeded,…
gabifm
  • 61
  • 1
  • 6
6
votes
5 answers

Equivalent to master pages in ASP Classic

Is it possible to build some kind of master page with Classic ASP without frames or iframes? I’m wondering if there is a way to include content pages in the main page like ASP.NET master pages do. From what I have researched, ASP Classic does…
Poku
  • 3,138
  • 10
  • 46
  • 64
1
2 3
24 25