[Tomcat] 7.Host

WAS/Tomcat 2016. 4. 25. 18:20
donaricano-btn

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"/>






        




        




          




'WAS > Tomcat' 카테고리의 다른 글

[Tomcat] 2. 설치이후 환경설정  (0) 2017.08.20
[Tomcat] 1. 설치환경 및 설치  (2) 2017.08.20
[Tomcat] 6. Interwork DB  (0) 2016.04.24
[Tomcat] 5. Batch - Parallel deployment  (0) 2016.04.24
[Tomcat] 4. Batch  (0) 2016.04.22
블로그 이미지

리딩리드

,