Page 1 of 1
How to use Server Side Includes (SSI) ?
Posted: Fri Apr 10, 2020 10:54 am
by Spheerys
I'm looking for a tutorial to make SSI (Server Side Includes) works with VestaCP
I'm using Ubuntu 18.04 and the latest VestaCP version.
Thanks :)
Re: How to use Server Side Includes (SSI) ?
Posted: Sun Apr 12, 2020 8:16 am
by Spheerys
For now, I have edited the /etc/nginx/nginx.conf file and add to the "http" section theses lines :
Code: Select all
ssi on;
ssi_last_modified on;
ssi_min_file_chunk 1k;
ssi_silent_errors off;
ssi_types text/html;
ssi_value_length 256;
I have restart nginx but my include like this doesn't works :
Code: Select all
<!--#include virtual="head.html" -->
There are not parsed !
I also tried to edit VestaCP nginx templates (with the sames lines), without success.
In any case, the general nginx config file should do the work !
The the Apache2 side, everything looks good natively with the line :
I really don't understand why SSI doesn't want to work on my VestaCP server, while on a fresh installed Debian/Ubuntu server, it's working well with this lines !
Re: How to use Server Side Includes (SSI) ?
Posted: Sun Apr 12, 2020 10:19 am
by Spheerys
OK I have found the issue : I just have to enable the modules under Apache2 :
Code: Select all
a2enmod include
service apache2 restart