01. Configure Server.xml to use a virtual host to deploy the project as a top-level domain

Source: Internet
Author: User

1 use a virtual host to deploy a project as a top-level domain2         3 1. In the Server.xml file4 1. Port modified to5 2. Configuring the host6     <Hostname= "Www.customer.com"AppBase= "D:\java1110\workspace\day19_2"7 Unpackwars= "true"Autodeploy= "true">8 9               Ten     <ValveClassName= "Org.apache.catalina.valves.AccessLogValve"Directory= "Logs" One prefix= "Localhost_access_log."suffix= ". txt" A pattern= "%h%l%u%t &quot;%r&quot;%s%b" /> -  -         <ContextPath=""DocBase= "D:\java1110\workspace\day19_2\WebRoot" /> the     </Host> - 3. Configuring in the Hosts file (C:\Windows\System32\drivers\etc\HOSTs file) - 127.0.0.1 www.customer.com - 4. Change the engine: defaulthost: "www.customer.com"; +  -                 

01. Configure Server.xml to use a virtual host to deploy the project as a top-level domain

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.