{"id":2714,"date":"2020-12-15T06:43:08","date_gmt":"2020-12-15T06:43:08","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=2714"},"modified":"2025-08-29T04:58:14","modified_gmt":"2025-08-29T04:58:14","slug":"how-to-enable-server-side-includes-ssi-in-apache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/","title":{"rendered":"How To Enable Server Side Includes (SSI) in Apache"},"content":{"rendered":"\n<p>Apache allows you to configure server side includes (SSI) to add dynamic web content, html code, and reuse them more efficiently. In many cases, this is more effective than coding the entire page using dynamic programming languages such as PHP or Python. In this article, we will look at how to enable server side includes (SSI) in Apache.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#What_is_Server_Side_Includes_SSI\" >What is Server Side Includes (SSI)?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#How_To_Enable_Server_Side_Includes_SSI_in_Apache\" >How To Enable Server Side Includes (SSI) in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#1_Open_htaccess_or_server_configuration_file\" >1. Open .htaccess or server configuration file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#2_Enable_Server_Side_Includes\" >2. Enable Server Side Includes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#3_Restart_Apache_web_server\" >3. Restart Apache web server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#4_Verify_Server_Side_Includes\" >4. Verify Server Side Includes<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#Include_File_in_your_HTML_Page\" >Include File in your HTML Page<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#Display_IP_Address\" >Display IP Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#Display_Last_Modified_Date_of_Web_Page\" >Display Last Modified Date of Web Page<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Server_Side_Includes_SSI\"><\/span>What is Server Side Includes (SSI)?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Server Side Includes (SSI) are directives that are present in HTML pages but evaluated on server, when they are served. They allow you to add dynamic content to your HTML pages, without needing to code the entire page via server-side programming languages such as PHP. They are mainly used to serve dynamic content on web pages and reuse HTML codes. Here are some of the benefits of using SSI:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can use SSI to include files (other than header files) in your web pages.<\/li>\n\n\n\n<li>You can create a navigation bar\/footer for your website, put it in a separate file and include it on all your web pages. <\/li>\n\n\n\n<li>SSI allows front end web developers to add dynamic elements to their site without modifying any back end code.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_To_Enable_Server_Side_Includes_SSI_in_Apache\"><\/span>How To Enable Server Side Includes (SSI) in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to enable server side includes in Apache. We will use <a href=\"https:\/\/httpd.apache.org\/docs\/current\/mod\/mod_rewrite.html\" target=\"_blank\" rel=\"noreferrer noopener\">mod_rewrite<\/a> for this purpose. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Open_htaccess_or_server_configuration_file\"><\/span>1. Open .htaccess or server configuration file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before proceeding, please enable mod_rewrite (.htaccess) in your Apache web server.<\/p>\n\n\n\n<p>Open .htaccess file, typically located at \/var\/www\/html\/.htaccess<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/var\/www\/html\/.htaccess<\/pre>\n\n\n\n<p>Alternatively, if you have access to Apache configuration file, you can open it in text editor. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/apache2\/httpd.conf<\/pre>\n\n\n\n<p>In many cases, website administrators may not have access to main configuration file, so it is better to modify .htaccess file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Enable_Server_Side_Includes\"><\/span>2. Enable Server Side Includes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Add the following line to .htaccess. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AddType text\/html .html \nAddHandler server-parsed .html \nOptions Indexes FollowSymLinks Includes<\/pre>\n\n\n\n<p>In the above code, AddType specifies the file types that are supported using server side includes. In our case, we have allowed only .html pages to have SSI. You can add more file types as per your requirement.<\/p>\n\n\n\n<p>If you have opened server configuration file, add the following lines<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Options +Includes \nAddType text\/html .html \nAddOutputFilter INCLUDES .html<\/pre>\n\n\n\n<p>The above lines enable server side includes and instructs apache to look for server side includes in .html files. You can enable server side includes for other file types (e.g .shtml) also by adding following lines.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AddType text\/html .shtml \nAddHandler server-parsed .shtml<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Restart_Apache_web_server\"><\/span>3. Restart Apache web server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Restart Apache web server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># service httpd restart\nOR \n# systemctl restart httpd\nOR\n# sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Verify_Server_Side_Includes\"><\/span>4. Verify Server Side Includes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Add the following line to any of your php web page (e.g \/index.php) to dynamically display today&#8217;s date on it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!--#echo var=\"DATE_LOCAL\" --&gt;<\/pre>\n\n\n\n<p>Open browser and go to <em>http:\/\/your_domain_or_ip\/index.php<\/em>. Replace <em>your_domain_or_ip<\/em> with your domain or ip address. You will see today&#8217;s date displayed at the same location where you added the above code.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Wednesday, 12-Jun-2024 19:28:54 EST<\/pre>\n\n\n\n<p>Here are some common example of server side includes:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Include_File_in_your_HTML_Page\"><\/span>Include File in your HTML Page<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can include another file in your HTML page using include directive. By changing the content of footer.html or quote.txt, the content of your HTML page will change automatically.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!--#include virtual=\"..\/quote.txt\" --&gt;<br>&lt;!--#include file=\"footer.html\" --&gt;<\/pre>\n\n\n\n<p>This directive can also be used to include header files on your web pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Display_IP_Address\"><\/span>Display IP Address<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The following SSI displays IP address of the user on the web page. It is often used by websites to display IP information to visitors.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!--#echo var=\"REMOTE_ADDR\" --&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Display_Last_Modified_Date_of_Web_Page\"><\/span>Display Last Modified Date of Web Page<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can use the following server side include to display the last modified date &amp; time of the given web page. This is useful to communicate the freshness of information on your website.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!\u2013#flastmod file=\u201dindex.html\u201d \u2013&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Apache Server Side Includes provide a simple way to include dynamic elements into your web pages without coding rendering the entire page using programming languages such as PHP or Python. This is very useful for web developers who can make changes to their site just by modifying the HTML page and not touching any of the back end code. In this article, we have learnt how to enable SSI in Apache server. The steps are the same for all versions of Apache server. <\/p>\n\n\n\n<p><a href=\"http:\/\/ubiq.co\/\">Ubiq<\/a>&nbsp;makes it easy to visualize data in minutes, and monitor in real-time dashboards.&nbsp;<a href=\"http:\/\/ubiq.co\/accounts\/register\">Try it<\/a> today!<\/p>\n\n\n\n<p>Also read : <br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-disable-etags-in-apache-server\/\">How to Disable ETags in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-414-request-uri-too-large-in-apache\/\">How to Fix Request URI Too Large in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/apache-restrict-access-to-url-by-ip\/\">Apache Restrict Access to URL by IP<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.<\/p>\n","protected":false},"author":1,"featured_media":2726,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[264],"class_list":["post-2714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-enable-server-side-includes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Enable Server Side Includes (SSI) in Apache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Enable Server Side Includes (SSI) in Apache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-15T06:43:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-29T04:58:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1050\" \/>\n\t<meta property=\"og:image:height\" content=\"700\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How To Enable Server Side Includes (SSI) in Apache\",\"datePublished\":\"2020-12-15T06:43:08+00:00\",\"dateModified\":\"2025-08-29T04:58:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/\"},\"wordCount\":720,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-ssi-apache.png?fit=1050%2C700&ssl=1\",\"keywords\":[\"enable server side includes\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/\",\"name\":\"How To Enable Server Side Includes (SSI) in Apache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-ssi-apache.png?fit=1050%2C700&ssl=1\",\"datePublished\":\"2020-12-15T06:43:08+00:00\",\"dateModified\":\"2025-08-29T04:58:14+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-ssi-apache.png?fit=1050%2C700&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/enable-ssi-apache.png?fit=1050%2C700&ssl=1\",\"width\":1050,\"height\":700,\"caption\":\"enable server side includes\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-enable-server-side-includes-ssi-in-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Enable Server Side Includes (SSI) in Apache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Enable Server Side Includes (SSI) in Apache - Ubiq BI","description":"You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/","og_locale":"en_US","og_type":"article","og_title":"How To Enable Server Side Includes (SSI) in Apache - Ubiq BI","og_description":"You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-12-15T06:43:08+00:00","article_modified_time":"2025-08-29T04:58:14+00:00","og_image":[{"width":1050,"height":700,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png","type":"image\/png"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How To Enable Server Side Includes (SSI) in Apache","datePublished":"2020-12-15T06:43:08+00:00","dateModified":"2025-08-29T04:58:14+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/"},"wordCount":720,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png?fit=1050%2C700&ssl=1","keywords":["enable server side includes"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/","name":"How To Enable Server Side Includes (SSI) in Apache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png?fit=1050%2C700&ssl=1","datePublished":"2020-12-15T06:43:08+00:00","dateModified":"2025-08-29T04:58:14+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"You can configure server side includes to add dynamic web content. Here is how to enable server side includes in Apache.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png?fit=1050%2C700&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png?fit=1050%2C700&ssl=1","width":1050,"height":700,"caption":"enable server side includes"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-enable-server-side-includes-ssi-in-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How To Enable Server Side Includes (SSI) in Apache"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/12\/enable-ssi-apache.png?fit=1050%2C700&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-HM","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=2714"}],"version-history":[{"count":19,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2714\/revisions"}],"predecessor-version":[{"id":9357,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2714\/revisions\/9357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/2726"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=2714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=2714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=2714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}