Engineering environment Building and Web site Deployment (Java)

Source: Internet
Author: User

We generally visit the site, are used 127.0.0.1:8080 ... Access to the Java Web site if you want to use www.shopping.com

Need to configure C:\Windows\System32\drivers\etc\hosts
Add 127.0.0.1 www.shopping.com

You also need to configure the E:\Java\apache-tomcat-7.0.53\conf\server.xml file (server.xml file in the Conf file under Install Tomat folder)
Change the port to 80, copy the last
Unpackwars= "true" autodeploy= "true"
Xmlvalidation= "false" Xmlnamespaceaware= "false" >


<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"
prefix= "Localhost_access_log" suffix= ". txt"
pattern= "%h%l%u%t &quot;%r&quot; %s%b "/>

<context path= "/" docbase= "E:\java test\workspaces\myeclipse 10\estore\webroot"/>

</Host>


Finally start the server, click Www.shopping.com to access the Java Web site, if the port value is not modified, then www.shopping.com:8080 access to the Java Web site

Engineering environment Building and Web site Deployment (Java)

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.