Java Web Project Publishing and use of custom domain names

Source: Internet
Author: User

Detailed explanation of the website:

Http://wenku.baidu.com/link?url=-ACZxKUcfrbhrMRUP3Ov-Q_c-Q9JPrA9D1fzHjHuJsWwZfRsVDVQ2qBtoY7Ly5Os_ Ingqtijepsxk5dgel1of2um1hjxnxnmll6l5tdnxps

Java Web Project Publishing and how to use a custom domain name:

First step: Copy the Java Web Project project name to tomcat7.x installation directory/webapps: Below

C:\WebServer\apache-tomcat-7.0.12\webapps

Step Two: Open the Tomcat7.x/conf/server.xml file

Add/Modify Ports: (used here to add:)

If you want to switch to another port reference (a):

Add the following code between the <Host></Host> tags:

<context path= "" docbase= "Salfo" reloadable= "true" debug= "0" ></Context>

Docbase= "Salfo"//project name deployed under WebApps file

Step Three: modify the operating system's hosts file to configure the custom domain name:

Open: C:\WINDOWS\system32\drivers\etc Find the Hosts file

Java Web Project Publishing and use of custom domain names

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.