SSI (Server Side Include) on DSM's web station?

Questions about HTTP Access/Mods may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.
Riz-man
Trainee
Trainee
Posts: 14
Joined: Thu Aug 09, 2012 5:10 am

SSI (Server Side Include) on DSM's web station?

Postby Riz-man » Sun Dec 30, 2012 5:46 am

Hi there,

I've just enabled my web station on the DS212J and am trying to figure out how I can view websites that I've made using SSI (Server Side Include)?

The user guide on page 88 says that "the homepage for your website must be named index.htm, index.html or index.php"...so does that mean it is not possible to use index.shtml?

I've tried a Google search of this forum but can't seem to find any kind of response I can understand.

Thank you in advance for any help provided.
zeefreak
Trainee
Trainee
Posts: 12
Joined: Fri May 03, 2013 3:41 pm

Re: SSI (Server Side Include) on DSM's web station?

Postby zeefreak » Fri Jul 17, 2015 8:48 pm

it took me a stupidly long time to figure this out thanks to synology and all their nonstandard pathing.

what needs to be done is:

edit /etc/httpd/conf/httpd.conf-user

in that file, ensure 'LoadModule include_module modules/mod_include.so' is uncommented. [it should be by default]

<Directory "/var/services/web">
Options MultiViews FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

</Directory>

that's all that is strictly required, though i added:

<IfModule dir_module>
DirectoryIndex index.html index.htm index.cgi index.php index.php5 index.shtml
</IfModule>

and then restart with '/usr/syno/sbin/synoservicecfg --restart httpd-user'
welshboff
Novice
Novice
Posts: 42
Joined: Sun Nov 01, 2015 12:21 pm

Server Side Includes (SSI) - how to enable

Postby welshboff » Wed Oct 19, 2016 6:10 pm

I'm playing around with various web technologies and found an old thread on how to enable Server Side Includes (https://forum.synology.com/enu/viewtopic.php?t=61778) but it doesn't see to work now as the location doesn't exist (conf under httpd).

Does anyone know how to enable SSI in the current version of DSM?

The old thread says to modify the following file:
edit /etc/httpd/conf/httpd.conf-user

But I can't see to find the httpd.conf-user file.


Any tips or help would be appreciated.

Return to “HTTP/Apache Mods”

Who is online

Users browsing this forum: No registered users and 1 guest