风's profile风来西林PhotosBlogLists Tools Help

Blog


    November 11

    ubuntu 系统下的apache添加ssi模块

    通过apt-get install apache2 安装系统后,默认安装并没有把模块直接加载,我们需要手动添加一个软连接,便于系统自动加载该模块!执行命令如下:
    #cd /etc/apache2/mods-enabled
    #sudo ln -s /etc/apache2/mods-available/include.load

    然后再修改你的虚拟主机的配置文件

    添加 +Includes 和文件类型

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml

    重启apache 服务

    sudo apache2ctl restart

    我们可以在页面内添加

    <!--#echo var="DATE_LOCAL" -->

    来测试一下SSI服务是否正常运行了~!大笑

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://jadexo.spaces.live.com/blog/cns!E5A97338AC5AFE1A!306.trak
    Weblogs that reference this entry
    • None