내용 목차
JEUS의 설정 파일인 domain.xml 내의 웹 엔진의 Virtual Host와 관련된 태그에 대한 설명을 찾을 수 있다.
XML Schema 파일:
JEUS_HOME\lib\schemas\jeus\web-engine.xsd
레퍼런스는 다음 형식으로 구성되어 있다.
XML Schema/XML 트리: XML 설정 파일의 모든 태그 리스트를 정리했다. 각 노드의 형식은 다음과 같다.
태그 레퍼런스로 빨리 찾아보기 위해서 각 태그마다 인덱스 번호( 예: (11) )를 붙여 놓았다. 태그 레퍼런스에서는 이 번호 순서로 설명한다.
XML Schema에서 정의한 XML 태그명을 <tag name> 형식으로 표시한다.
XML Schema에서 정의한 Cardinality를 표시한다. “?” = 0개나 1개의 element, “+” = 1개 이상의 element, “*” = 0개 이상의 element, (기호가 없음) = 정확히 1개의 element
몇몇 태그에는 “P” 문자를 붙여 놓았는데, 해당 태그는 성능에 관계되는 태그라는 것을 뜻한다. 이 태그는 설정을 튜닝할 때 사용된다.
Element Reference: 트리에 있는 각 XML 태그를 설명한다.
Dynamic: 동적 설정 반영 가능
Non-Dynamic: 동적 설정 반영 불가능, Dynamic이 설정되지 않은 항목들이 보통 이에 해당 하나 특별히 설명이 있는 경우 이 항목이 표시된다.
Description: 태그에 대한 간단한 설명.
Value Description: 입력하는 값과 타입.
Value Type: 값의 데이터 타입. (예: String)
Value Type Description: 값의 데이터 타입에 대한 설명
Default Value: 해당 XML을 사용하지 않았을 때 기본적으로 사용되는 값.
Defined Value: 이미 정해져 있는 값.
Example: 해당 XML 태그에 대한 예.
Performance Recommendation: 성능 향상을 위해서 추천하는 값.
Child Elements: 자신의 태그 안에 사용하는 태그.
(122) <virtual-host> *
(123) <virtual-host-name>
(124) <host-name> +
(125) <thread-pool> ?
(126) <min>
(127) <max>
(128) <max-idle-time> ?
(129) <max-queue> ?
(130) <thread-state-notify> ?
(131) <max-thread-active-time> ?
(132) <interrupt-thread> ?
(133) <active-timeout-notification> ?
(134) <notify-threshold-ratio> ?
(135) <notify-subject> ?
(136) <restart-threshold-ratio> ?
(137) <restart-subject> ?
(138) <encoding> ?
(139) <request-encoding> ?
(140) <default>
(141) <client-override>
(142) <forced>
(143) <response-encoding> ?
(146) <cookie-policy> ?
(147) <write-value-on-header-policy> ?
(148) <apply-url-encoding-rule> ?
(149) <charset-encoding> ?
(150) <properties> ?
(151) <property> *
(154) <attach-stacktrace-on-error> ?
(155) <access-log> ?
(156) <level> ?
(157) <use-parent-handlers> ?
(158) <filter-class> ?
(159) <formatter-pattern> ?
(160) <handler> ?
(161) <file-handler> *
(162) <name>
(163) <level> ?
(164) <encoding> ?
(165) <filter-class> ?
(166) <file-name> ?
(167) <permission> ?
(168) <chown> ?
(169) <enable-rotation> ?
(170) <rotation-count> ?
(171) <rotation-dir> ?
(172) <valid-day>
(173) <valid-hour>
(174) <valid-size>
(175) <buffer-size> ? P
(176) <append> ?
(177) <smtp-handler> * P
(178) <name>
(179) <level> ?
(180) <encoding> ?
(181) <filter-class> ?
(182) <smtp-host-address>
(183) <sender-id>
(184) <sender-password>
(185) <from-address>
(186) <to-address>
(187) <property> *
(190) <cc-address> ?
(191) <bcc-address> ?
(192) <send-for-all-messages> ?
(193) <socket-handler> * P
(194) <name>
(195) <level> ?
(196) <encoding> ?
(197) <filter-class> ?
(198) <address>
(199) <port>
(200) <user-handler> *
(201) <name>
(202) <level> ?
(203) <encoding> ?
(204) <filter-class> ?
(205) <handler-class>
(206) <handler-property> ?
(207) <property> *
(210) <formatter-pattern> ?
(211) <formatter-property> ?
(212) <property> *
(215) <enable> ?
(216) <format> ?
(217) <exclude-ext> ?
(218) <enable-host-name-lookup> ?
(219) <pipeline> ?
(220) <valve> *
(221) <class-name>
(222) <property> *
(122)
<
domain
><
servers
><
server
><
web-engine
>
<virtual-host>
| |
Description | 도메인 이름을 기준으로 서로 같은 URL로 서로 다른 웹 애플리케이션을 서비스 할 수 있도록 설정한다. 같은 가상 호스트에 속한 도메인들은 같은 서비스가 가능하지만, 서로 다른 가상 호스트에 속한 도메인들은 같은 서비스를 할 수 없다. |
Value Type | virtual-hostType |
Child Elements |
(124)
(125)
(126)
(139)
(147)
(151)
(155)
(156)
(220)
|
[예 10.1] 웹 엔진 내의 Virtual Host domain.xml 파일 예제
<?xml version="1.0"?> <domain xmlns="http://www.tmaxsoft.com/xml/ns/jeus"> <servers> <server> <web-engine> <virtual-host> <!-- unique name --> <virtual-host-name>host1</virtual-host-name> <!-- host names --> <host-name>www1.foo.com</host-name> <host-name>www2.foo.com</host-name> <!-- access log for this virtual host --> <access-log> <enable>false</enable> <format>combined</format> </access-log> <!-- properties for this virtual host --> <properties> <property> <key>myVirtualHostKey</key> <value>myVirtualHostValue</value> </property> </properties> </virtual-host> </web-engine> </server> </servers> </domain>