location / ssi on; ssi_types text/shtml; index index.shtml index.html;
AddType text/html .shtml AddHandler server-parsed .shtml Options +Includes Inside your server block, you need to use ssi on; and specify the types. view shtml link
This article provides a comprehensive guide to understanding, viewing, and creating links for SHTML files. Before learning how to view an SHTML link, you must understand what the file represents. SHTML stands for Server-parsed HTML . It is a standard HTML file that includes Server-Side Includes (SSI) . Why use .shtml instead of .html? Standard .html files are static. The server sends them to the browser exactly as they are written. However, if you want to reuse a header, footer, or navigation menu across 500 pages, updating every single file manually is a nightmare. location / ssi on; ssi_types text/shtml; index index