Debian 10 server - How to get SSI working on apache?
by Nojus.k from LinuxQuestions.org on (#5R61T)
Greetings,
I want to add Server Side Includes(SSI) to my website, so I can update the links dynamically, but I have issues getting it to work on apache. I, of course have the code added to the pages: Code:<!--#include virtual="/sidebar.htm" -->and also added these three lines of code at the bottom of my apache2.conf file:
Code:Options +Includes
AddType text/html .htm
AddOutputFilter INCLUDES .htmI'm also using the .htm extension instead of the default .shtml. Did I missed something to add? (P.S SSI worked perfectly fine when I was on IIS in Windows Server, so my pages are confirmed to be fine)
I want to add Server Side Includes(SSI) to my website, so I can update the links dynamically, but I have issues getting it to work on apache. I, of course have the code added to the pages: Code:<!--#include virtual="/sidebar.htm" -->and also added these three lines of code at the bottom of my apache2.conf file:
Code:Options +Includes
AddType text/html .htm
AddOutputFilter INCLUDES .htmI'm also using the .htm extension instead of the default .shtml. Did I missed something to add? (P.S SSI worked perfectly fine when I was on IIS in Windows Server, so my pages are confirmed to be fine)