Turn your computer into a virtual server

Source: Internet
Author: User

Have you developed your own blog system? Small webapp?
 
What if I don't want to buy a domain name to buy a space?
 
Teach you how to make your computer a small server and allow Internet computers to access your website (Project)
 
 
Step 1: first download "peanut shell" software, software: http://www.oray.com/peanuthull/download.php
 
Step 2: Install and register an account to apply for a free domain name xxx. xxx
 
Step 3: Go to the tomcat directory and find conf. xml for modification (xxx. xxx here is the domain name you applied ):
 
<Host name = "xxx. xxx" appBase = "webapps"
UnpackWARs = "true" autoDeploy = "true"
XmlValidation = "false" xmlNamespaceAware = "false">
 
Step 4: Modify conf. xml (here xxx. xxx is the domain name you applied)
 
 
<Engine name = "Catalina" defaultHost = "xxx. xxx">
Step 5: Go to the vro to set the Virtual Server
 
Forwarding rules --> virtual server --> Add new entries
 
Service port: (XX-XX or XX)
IP Address:
Protocol:
Status:
Service port: 8080 (mainly to be the same as the tomcat port. If you say that the port number in tomcat is set to 80, it is also set to 80)
IP Address: the IP address of your local machine
 
Protocol: all
 
Status: Effective
 
Step 6: restart tomcat and enter xxx in the browser. xxx: 8080 (if the port number is 80, you do not need to enter the port number). If the tomcat homepage is opened, it is OK. You can publish your project to tomcat and access your project through the internet!

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.