Below you will find pages that utilize the taxonomy term “Shtml”
December 3, 2008
配置apache服务器支持shtml
"\u003cp\u003e服务器采用shtml速度会比html慢,比php快。\u003c/p\u003e\n\u003cp\u003eshtml的特点就是能够进行页面包含,能够局部更新页面包含部分。广泛采用可以很容易解决网页中的广告问题,不需要更新全面静态页面。而只需更新一个包含页面即可。\u003c/p\u003e\n\u003cp\u003eapache下配置服务器支持shtml\u003c/p\u003e\n\u003cp\u003e打开文件:httpd.conf\u003c/p\u003e\n\u003cp\u003e去掉前面的 #LoadModule include_module modules/mod_include.so\u003c/p\u003e\n\u003cp\u003eOptions Indexes FollowSymLinks Includes\u003c/p\u003e\n\u003cp\u003eAllowOverride Options FileInfo\nOrder allow,deny\nAllow from all\u003c/p\u003e\n\u003cp\u003e找到下面两句,去掉前面的#\u003c/p\u003e\n\u003cp\u003eAddType text/html .shtml\nAddOutputFilter INCLUDES .shtml\u003c/p\u003e\n\u003cp\u003e重启apache即可。\u003c/p\u003e\n\u003cp\u003e建立页面:\u003c/p\u003e\n\u003cp\u003e测试\u003c/p\u003e\n\u003cp\u003efile为相对于当前文档的路径。\u003c/p\u003e\n\u003cp\u003evirtual为相对于虚拟目录的路径。\n如果需要让所有的html文件支持shtml.只需要修改上面一句。\u003c/p\u003e\n\u003cp\u003eAddOutputFilter INCLUDES .html\u003c/p\u003e"