web access notes directly through the domain name

web access notes directly through the domain name

web access notes directly through the domain name
web access notes directly through the domain name

web.xml: Content

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
    xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  <welcome-file-list>
    <welcome-file>a.html</welcome-file>
  </welcome-file-list>
</web-app>

web access notes directly through the domain name

web access notes directly through the domain name

two:

Modify the port number to port 80:

    -->
    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

Modify the virtual path:

       <Host name="www.systest.com"  appBase="d:\home">
           <Context path=""  docBase="d:\home\mail"/>      
      </Host>

add host


# Localhost (DO NOT REMOVE) Start
#127.0.0.1 localhost
127.0.0.1   www.systest.com

Start tomcat:
web access notes directly through the domain name

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324615891&siteId=291194637
Recommended