首页
Profile
Profile
Profile
Profile
Profile

ubuntu配置apache支持shtml

2011-04-19 阅读 54
在ubuntu下配置apache支持shtml的方法如下: 进入/etc/apache2/mods-available/,创建文件include.conf,内容:
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    ```
    

进入/etc/apache2/mods-enabled/,创建两个静态链接文件:

    ln -s ../mods-available/include.load include.load
    
    ln -s ../mods-available/include.conf include.conf
    ```
    

进入/etc/apache2/site-available/,修改default配置文件(注意增加Includes部分):

    <Directory "/">
        Options Indexes FollowSymLinks Includes
        AllowOverride All
    </Directory>
    ```


ubuntu 配置 apache 支持 shtml 方法



更新于 2023年03月28日
 
陕ICP备13008705号-1 Chat Gpt Api