Plesk for Windows
Plesk for Linux
kb: bug
ABT: Group A
Applicable to:
- Plesk for Windows
- Plesk for Linux
Question
How to enable Server Side Includes (SSI) support in Plesk?
Answer
Click on a section to expand
Plesk for Windows
-
Go to Tools & Settings > Updates & Upgrades > Add/Remove Components > Plesk Hosting Features and install Server Side Includes.
2. Go to Plesk > Domains > example.com > Hosting Settings and tick SSI support checkbox in Web Scripting and Statistics section.
Plesk for Linux
- Log into Plesk
- Go to Domains > example.com > Hosting Settings and tick the SSI support checkbox > click OK:
- Go to Domains > example.com > Apache & nginx settings > Additional apache directives > add desired directives into the Additional directives for HTTP/Additional directives for HTTPS fields respectively. For example, to parse .shtml files:
CONFIG_TEXT: AddType text/html .shtml
AddOutputFilter INCLUDES .shtml - Add to Domains > example.com > Apache & nginx settings > Additional nginx directives:
CONFIG_TEXT: ssi on;
There is bug PPP-45765. SSI is not enabled automatically for NGINX if proxy mode is disabled. So there is the step to add the directive to Nginx configuration manually.
- Click OK to apply changes
Comments
6 comments
To make it work, you also need to put the line:
ssi on;
in Additional Nginx settins box for the domain interested.
@... 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.
<!--#echo var="DATE_LOCAL" -->
@... 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.
Please sign in to leave a comment.