How to use Server Side Includes (SSI) ?
How to use Server Side Includes (SSI) ?
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 :)
I'm using Ubuntu 18.04 and the latest VestaCP version.
Thanks :)
Re: How to use Server Side Includes (SSI) ?
For now, I have edited the /etc/nginx/nginx.conf file and add to the "http" section theses lines :
I have restart nginx but my include like this doesn't works :
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 !
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;
Code: Select all
<!--#include virtual="head.html" -->
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 :
Code: Select all
Options +Includes
Re: How to use Server Side Includes (SSI) ?
OK I have found the issue : I just have to enable the modules under Apache2 :
Code: Select all
a2enmod include
service apache2 restart