How to enable Server Side Includes (SSI) support in Plesk?

Follow

Comments

6 comments

  • Avatar
    Tech Team

    To make it work, you also need to put the line:

    ssi on;

    in Additional Nginx settins box for the domain interested.

    0
    Comment actions Permalink
  • Avatar
    Vladimir Chernikov
    Hello @Sysadmins,
     
    Thank you for your input! It should be enough to enable SSI support via Plesk GUI at Domains > example.com > Hosting Settings > check SSI support:
    I've verified it in the test environment with <!--#echo var="DATE_LOCAL" --> directive. When SSI is enabled in Plesk GUI the current date displaying on the page. This means SSI working as expected. 
    0
    Comment actions Permalink
  • Avatar
    Jordan Schelew

    Vladimir Chernikov If the option "Serve static files directly by nginx" is enabled and included in its list is the file extension for files that contain the SSI directives (ex: .htm), then Tech Team is correct: you will need to add `ssi on;`. I would imagine Plesk should be adding `ssi on;` to the nginx config for the domain for us when the SSI support box has been checked and the server static files by nginx option is enabled.

    0
    Comment actions Permalink
  • Avatar
    Vladimir Chernikov
    Hello @Websavers Inc.,
     
    Thank you for your input.
     
    I've tested SSI in the test environment and it is required to enable SSI at Domains > example.com > Hosting Settings. 
     
    Also it is required to add the following directives to Domains > example.com > Apache & nginx settings > Additional apache directives with required web type:
    AddType text/html .html
    AddOutputFilter INCLUDES .html
     
    With "Serve static files directly by nginx" option enabled the server-side includes are working correctly:
    <!--#echo var="DATE_LOCAL" -->

    0
    Comment actions Permalink
  • Avatar
    Jordan Schelew

    Vladimir Chernikov sorry but the SSI option under Domains > example.com > Hosting Settings was enabled throughout all my testing. Enabling it does not enable SSI in Nginx, only in Apache. 

    0
    Comment actions Permalink
  • Avatar
    Vladimir Chernikov
    Hello @Jordan Schelew,
     
    I can verify that SSI is not enabled for NGINX if proxy mode is disabled. Apache is not used in this scenario. I've checked Plesk internal bug tracker and the issue is already registered with ID: PPP-45765
     
    Thank you for bringing this to our attention! The article will be updated accordingly soon.
     
    Currently, the exact ETA for this item is yet to be determined by the Plesk R&D team. The information will appear in the Plesk changelog: https://docs.plesk.com/release-notes/obsidian/change-log/
     
    I appreciate your understanding. 
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request