---
title: "如何让apache支持.shtml 让apache支持include标签(转)"
author: "renky"
date: "2011-01-30T12:39:48Z"
tags: []
categories: ["编程语言"]
slug: "apache-shtml-apache-include"
draft: false
lastmod: "2011-01-30T12:39:48Z"
id: 899699
url: "https://renky.iteye.com/blog/899699"
---

打开conf目录下的httpd.conf文件，搜索“AddType text/html .shtml”，搜索结果：

修改为：

AddType text/html .shtml  
AddOutputFilter INCLUDES .shtml  
Options Indexes FollowSymLinks includes

保存httpd.conf，重起apache即可。

到此我们就完成了对Apache SSI的设置.