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.

References

48 questions
1
vote
1 answer

NGINX SSI working fine, but LAST_MODIFIED returning "(none)"?

I have NGINX SSI working fine in the virtualHosts file (code below) but LAST_MODIFIED is returning "(none)", although the NGINX docs for SSI state that the ssi_last_modified directive appeared in version 1.5.1 (we’re running version…
Dave Everitt
  • 201
  • 1
  • 4
  • 11
0
votes
0 answers

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; gzip_disable "msie6"; gzip_proxied any; gzip_comp_level…
KSB
  • 1
  • 1
0
votes
1 answer

ssi on nginx, using variables and conditionals

I'm using nginx to server up my static pages. To make the menu dynamically change the class="active" on the respective page, I'm trying to use SSI variables. So I have this on the page itself: and then a…
Andrew Newby
  • 1,102
  • 2
  • 25
  • 58
0
votes
0 answers

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:


Do your part - donate!
...but this…
Andrew Newby
  • 1,102
  • 2
  • 25
  • 58
0
votes
2 answers

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/page.shtml -- instructions are found on…
0
votes
1 answer

Can I use the Nginx PageSpeed module together with SSI?

Is it possible to use the Nginx PageSpeed module together with SSI? I can't get SSI up and running when PageSpeed is enabled. But as soon as I disable PageSpeed, SSI works again: location ~ .+\.html$ { pagespeed off; ssi on; }
czerasz
  • 577
  • 1
  • 9
  • 14
0
votes
2 answers

If a web root directory has a simlink that points to a folder one-level up, does that pose a security risk?

Assuming a Linux/Unix system. Not asking about any particular server software, just wondering in general. I want to use this to include javascript libraries or things like that in multiple sites or subdomains.
bluegreen
  • 101
0
votes
1 answer

Apache 2.4 SSI on Ubuntu 13.04

I have an Ubuntu 13.04 server that had normal, stock Apache 2.2 with SSI working. I got a bug in my ear, and installed the ppa:rhardy/apache24x PPA to get my server upgraded Apache 2.4. While it wasn't a clean upgrade, I have gotten most of the…
Mike
  • 190
  • 1
  • 9
0
votes
1 answer

Automatically prepend executable Perl scripts using .htaccess (like php_value auto_prepend_file)?

I have previously built sites using PHP, where I automatically included header and footer html using the following lines in .htaccess on an Apache host: php_value auto_prepend_file "/var/www/html/parts/header.htm" php_value auto_append_file …
0
votes
1 answer

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 eg. http://testwp.humbug.in/test/index.html works…
freethinker
  • 336
  • 1
  • 8
0
votes
1 answer

php relative path not found

I'm migrating to a new server. Before I could use: include/XXXX.php in /var/site/test.php. Now I have use: /var/site/include/XXXX.php I'm using: Ubuntu 10.4 Apache2 PHP5
NitroxDM
  • 635
  • 1
  • 15
  • 29
0
votes
1 answer

PostgreSQL 9.0 HA load balancing between servers

Hey folks, I'm bashing my head to configure load balancing stuff between two database servers. I have no clue whether, I can find any mechanism to implement this. I already tried to implement Heart beat clustering but it requires virtual Ip wherein…
0
votes
3 answers

Server impact of common shared files across hundreds of sites

I am working for a client running a HostGator Dedicated Server with hundreds of sites on it. Since there will be some common files between them I am contemplating doing the following: creating a COMMON folder in /home/ that holds the universal…
filip
  • 125
  • 6
0
votes
2 answers

Apache SHTML including a PHP file

Following this question HTAccess Directory Index with PHP-Files I was able to create my index using a PHP file included in a SHTML file as follows This is written in the "header.shtml" which is declared as…
F.P
  • 153
  • 4
  • 15
0
votes
3 answers

php include file

I have a common framework that resides in /var/www/fw/trunk path, and also have a virtual host that resides in /var/www/vhosts/aerosoftware.net/httpdocs/ on a http://aerosoftware.net/ domain. I changed php.ini include path to…
dfilkovi
  • 181
  • 2