Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to use Server Side Includes (SSI) ?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
How to use Server Side Includes (SSI) ?
  • Quote

Post by Spheerys » Fri Apr 10, 2020 10:54 am

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 :)
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to use Server Side Includes (SSI) ?
  • Quote

Post by Spheerys » Sun Apr 12, 2020 8:16 am

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 :

Code: Select all

Options +Includes
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 !
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to use Server Side Includes (SSI) ?
  • Quote

Post by Spheerys » Sun Apr 12, 2020 10:19 am

OK I have found the issue : I just have to enable the modules under Apache2 :

Code: Select all

a2enmod include
service apache2 restart
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password