1. Configure the vro and go to http: // 192.168.0.1/to start setting.
Select "forwarding rules" -- "virtual server" -- configure as follows, IP address for your local IP Address
Select "forwarding rules" -- "DMZ" host -- configure as follows, IP address for your local IP Address
Copy your web application to the webapp directory of Tomcat. The following uses mywebsite as an example.
6. Modify server. xml
Set
<Engine name = "Catalina" defaulthost = "localhost">
Modify
<Engine name = "Catalina" defaulthost = "dingxinzhang.vicp.net">
Dingxinzhang.vicp.net is the domain name I applied
Set
<Host name = "localhost" appbase = "webapps" unpackwars = "true" autodeploy = "true">
Modify
<Host name = "dingxinzhang.vicp.net" appbase = "webapps" unpackwars = "true" autodeploy = "true">
In this line, add:
<Context Path = "" docbase = "mywebsite" DEBUG = "0" reloadable = "true" crosscontext = "false"/>
Mywebsite is the name of my website directory to copy the folder to webappa.
Note that Path = "" is empty here to access the home page of your website rather than the home page of Tomcat by default.
Configure over here!
Enter http://chenscmail.xicp.net in the browser address bar
Or http://chenscmail.xicp.net: 7777 (Tomcat port, when set to 80, the address bar does not need to enter 80)