Web server explanation Html-include

Source: Internet
Author: User

Official web site because of the use of <!--#include file= "include/header.html"--label, in the case of copying the code to the local situation, the page can not be long normal display, The multi-party verification was found to be due to the fact that the include could not be interpreted normally, as opening could have a performance impact, and the following would be divided into Tomcat and IIS for separate descriptions:

1.tomcat

(1) Find the Tomcat configuration file location, locate Context.xml and Web. XML, and make a backup;

(2) Open the Context.xml file and add the attribute privileged= "true" to the context parent tag, as follows:

<ContextPrivileged= "true">    <!--Default set of monitored resources -    <Watchedresource>Web-inf/web.xml</Watchedresource>    <!--uncomment this to disable session persistence across Tomcat restarts -    <!--<manager pathname= ""/> -    <!--uncomment this to enable Comet connection tacking (provides events in session expiration as well as WebApp Li Fecycle) -    <!--<valve classname= "Org.apache.catalina.valves.CometConnectionManagerValve"/> -</Context>

(3) Save the file;

(4) Open the Web. xml file;

(5) Locate the built in Servlet mappings, and uncomment the HTML section at servlet-mapping as shown in:

(6) Find the servlet configuration section, find the code part, dismiss the comment;

(7) Save the file, restart the Tomcat server;

2.IIS

(1) Open IIS;

(2) Click on the site you want to set up;

(3) Select "Process application Mapping";

(4) Click Add Module Map, fill in the contents as shown;

(5) Restart II

Web server explanation Html-include

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.