WAS/Tomcat
[Tomcat] 7.Host
리딩리드
2016. 4. 25. 18:20
Host
1. Composition
1_1. server.xml
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
1_2. Add a host
<Host name="myhost" appBase="webapps2"
unpackWARs="true" autoDeploy="true">
2. Characteristic
2_1. The application will be called by each address
[source:https://www.youtube.com/channel/UCSDurTMDxYJT1qVL4ERelKg]
3. Example
3_1. server.xml
3_2. To set up a hosts
a. Case of Window
- c:\windows\System32\drivers\etc\hosts
b. Case of Linux
- etc/hosts
3_3. Application's location
3_4. Execution
- http://www.myserver.com:8080
- http://mail.myserver.com:8080
4. Host manager
4_1. config
<role rolename="admin-gui"/> <user username="tomcat" password="s3cret" roles="admin-gui"/>