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 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…
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…
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…
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…
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;
}
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.
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…
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 …
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…
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
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…
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…
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…
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…