[jeus@localhost config]$ cat ws_engine.m
*DOMAIN
jeuservice
*NODE
localhost * 컨테이너 1
WEBTOBDIR = "/usr/local/jeus5/webserver",
SHMKEY = 54000,
DOCROOT = "/home/free/webapps/WebContent",
PORT = "8080",
LOGGING = "log1",
ERRORLOG = "log2",
JSVPORT = 9900,
IndexName = "index.do,index.html,index.jsp",
HTH = 1
*VHOST * 컨테이너2 가상 호스트 추가
vhost1
DOCROOT = "/home/free2/webapps/WebContent", * 새로운 컨텍스트 경로
PORT = "8088", * 사용할 포트 번호 지정(포트번호만 변경하여 다른 컨텍스트 사용)
NODENAME = "localhost", * 상위에 정의한 NODE 명을 지정
HOSTNAME = "192.168.1.11", * DNS 명(예: aaa.co.kr) 또는 localhost IP(IP로 외부 접속)
* HOSTNAME에서 DNS 명을 설정시에 로컬의 hosts 파일에 dns 추가
IndexName = "index.do,index.html,index.jsp", * 컨테이너 기동시에 읽어들일 파일
LOGGING = "log3", * 로그 정의
ERRORLOG = "log4"
*SVRGROUP
htmlg NODENAME = "localhost", SVRTYPE = HTML
cgig NODENAME = "localhost", SVRTYPE = CGI
ssig NODENAME = "localhost", SVRTYPE = SSI
jsvg NODENAME = "localhost", SVRTYPE = JSV
jsvg1 NODENAME = "localhost", SVRTYPE = JSV, VHOSTNAME = vhost1 * 가상 호스트 추가
*SERVER
html SVGNAME = htmlg, MinProc = 1, MaxProc = 2
cgi SVGNAME = cgig, MinProc = 1, MaxProc = 2
ssi SVGNAME = ssig, MinProc = 1, MaxProc = 2
MyGroup SVGNAME = jsvg, MinProc = 5, MaxProc = 10
MyGroup2 SVGNAME = jsvg1, MinProc = 5, MaxProc = 10 * 추가된 컨테이너에서 사용하는 그룹
*URI
uri1 Uri = "/cgi-bin/", Svrtype = CGI
uri2 Uri = "/free1/", Svrtype = JSV * 컨테이너1 의 이름(JEUSMain.xml)
uri3 Uri = "/free2/", Svrtype = JSV, VhostName=vhost1, SvrName = MyGroup2 * 컨테이너2의 이름(JEUSMain.xml)
uri4 Uri = "/", Svrtype = JSV
*ALIAS
alias1 URI = "/cgi-bin/", RealPath = "/usr/local/jeus5/webserver/cgi-bin/"
*LOGGING
log1 Format = "DEFAULT", FileName = "/home/free/webapps/logs/webserver/access.log", Option = "sync"
log2 Format = "ERROR", FileName = "/home/free/webapps/logs/webserver/error.log", Option = "sync"
log3 Format = "DEFAULT", FileName = "/home/free2/webapps/logs/webserver/access.log", Option = "sync" * 로그파일 저장 경로
log4 Format = "ERROR", FileName = "/home/free2/webapps/logs/webserver/error.log", Option = "sync"
*EXT
htm MimeType = "text/html", SvrType = HTML
do Mimetype ="application/jsp", Svrtype=JSV, SvrName=MyGroup * 사용 확장자 정의
jsf Mimetype ="application/jsp", Svrtype=JSV, SvrName=MyGroup
jsp Mimetype ="application/jsp", Svrtype=JSV, SvrName=MyGroup
html MimeType = "text/html", SvrType = HTML
hwp MimeType = "application/x-hwp", SvrType = HTML
pdf MimeType = "application/x-pdf", SVRTYPE = HTML
css MimeType = "text/css", SvrType = HTML
js MimeType = "application/x-javascript", SvrType = HTML
gul MimeType = "application/gul", SvrType = HTML
gif MimeType = "image/gif", SvrType=HTML
jpeg MimeType = "image/gif", SvrType=HTML
jpg MimeType = "image/gif", SvrType=HTML
zip MimeType = "application/zip", SvrType=HTML
jar MimeType = "application/x-java-archive", SvrType=HTML
exe MimeType = "application/octet-stream", SvrType=HTML
wml MimeType = "application/vnd.wap.wml", SvrType=HTML
wmls MimeType = "application/vnd.wap.wmlscript", SvrType=HTML
wmlc MimeType = "application/vnd.wap.wmlc", SvrType=HTML
wmlsc MimeType = "application/vnd.wap.wmlscript", SvrType=HTML
wbmp MimeType = "application/vnd.wap.wbmp", SvrType=HTML
swf MimeType = "application/x-shockwave-flash", SvrType=HTML
csv MimeType = "application/octet-stream", SvrType=HTML
xml MimeType = "text/html", SvrType = HTML
asd MimeType = "application/astound",SvrType=HTML
asn MimeType = "application/astound",SvrType=HTML
doc MimeType = "application/msword",SvrType=HTML
wiz MimeType = "application/msword",SvrType=HTML
rtf MimeType = "application/msword",SvrType=HTML
xls MimeType = "application/vnd.ms-excel",SvrType=HTML
xlw MimeType = "application/vnd.ms-excel",SvrType=HTML
xla MimeType = "application/vnd.ms-excel",SvrType=HTML
xlc MimeType = "application/vnd.ms-excel",SvrType=HTML
xlm MimeType = "application/vnd.ms-excel",SvrType=HTML
xlt MimeType = "application/vnd.ms-excel",SvrType=HTML
ppt MimeType = "application/vnd.ms-powerpoint",SvrType=HTML
pps MimeType = "application/vnd.ms-powerpoint",SvrType=HTML
pot MimeType = "application/vnd.ms-powerpoint",SvrType=HTML
m13 MimeType = "application/x-msmediaview",SvrType=HTML
m14 MimeType = "application/x-msmediaview",SvrType=HTML
wmf MimeType = "application/x-msmetafile",SvrType=HTML
midi MimeType = "audio/midi",SvrType=HTML
mid MimeType = "audio/midi",SvrType=HTML
aif MimeType = "audio/x-aiff",SvrType=HTML
aiff MimeType = "audio/x-aiff",SvrType=HTML
aifc MimeType = "audio/x-aiff",SvrType=HTML
wav MimeType = "audio/x-wav",SvrType=HTML
cab MimeType = "x-application/octet-stream", SvrType = HTML
fla MimeType = "application/x-fla", SvrType=HTML
ws_engine.m 파일은 설정후 컴파일 과정을 함
[jeus@localhost localhost]$wscfl -i ws_engine.m
##############################################################################
content=Vim/7.2 name=Generator>[jeus@localhost localhost]$ cat JEUSMain.xml
<?xml version="1.0" ENCODING="utf-8"?>
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<node>
<name>localhost</name>
<engine-container>
<!-- 컨테이너 1 -->
<name>container1</name>
<command-option>-Xms256m -Xmx512m</command-option>
<engine-command>
<type>ws</type>
<name>engine1</name>
</engine-command>
<engine-command>
<type>servlet</type>
<name>engine1</name>
</engine-command>
<sequential-start>true</sequential-start>
</engine-container>
<!-- 컨테이너 2 -->
<engine-container>
<name>container2</name>
<command-option>-Xms256m -Xmx512m</command-option>
<engine-command>
<type>servlet</type>
<name>engine2</name>
</engine-command>
<sequential-start>true</sequential-start>
</engine-container>
<class-ftp>true</class-ftp>
<sequential-start>true</sequential-start>
<enable-webadmin>true</enable-webadmin>
</node>
<application>
<!-- 노드 localhost 에서 사용할 컨테이너 이름(ws_engine.m)-->
<name>free1</name>
<path>/home/free/webapps/WebContent</path>
<deployment-type>COMPONENT</deployment-type>
<deployment-target>
<target>
<engine-container-name>localhost_container1</engine-container-name>
<web-context-group>
<name>MyGroup</name>
</web-context-group>
</target>
</deployment-target>
<web-component/>
</application>
<application>
<!-- 가상호스트 vhost1 에서 사용할 컨테이너 이름(ws_engine.m)-->
<name>free2</name>
<path>/home/free2/webapps/WebContent</path> <!-- 추가할 컨텍스트 경로 -->
<deployment-type>COMPONENT</deployment-type>
<deployment-target>
<target>
<engine-container-name>localhost_container2</engine-container-name>
<web-context-group>
<name>MyGroup2</name>
</web-context-group>
</target>
</deployment-target>
<web-component/>
</application>
</jeus-system>
##############################################################################
content=Vim/7.2 name=Generator>기본으로 제우스에서 하나의 webtob 와 하나의 호스트명_ws_engine1 를 사용.
컨테이너 1 다음으로 추가되는 컨테이너는,
컨테이너 1에 설정된 호스트명_ws_engine1/WSMain.xml 에 설정부분을 추가하여 사용.
[jeus@localhost localhost_ws_engine1]$ cat WSMain.xml
<?xml version="1.0" ENCODING="UTF-8"?>
<ws-engine xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<domain>
<name>jeuservice</name>
<!-- 컨테이너 1에서 사용. -->
<node>
<name>localhost</name>
<webtob-dir>/usr/local/jeus5/webserver</webtob-dir>
<shmkey>54000</shmkey>
<docroot>/home/free/webapps/WebContent</docroot>
<jsv-port>9900</jsv-port>
<hth>1</hth>
<port>8080</port>
<logging>log1</logging>
<error-log>log2</error-log>
</node>
<!-- 추가된 컨테이너 설정은 아래 해당하는 엘리먼트 추가 -->
<svrgroup>
<name>htmlg</name>
<svr-type>HTML</svr-type>
<node-name>localhost</node-name>
</svrgroup>
<svrgroup>
<name>cgig</name>
<svr-type>CGI</svr-type>
<node-name>localhost</node-name>
</svrgroup>
<svrgroup>
<name>ssig</name>
<svr-type>SSI</svr-type>
<node-name>localhost</node-name>
</svrgroup>
<svrgroup>
<name>jsvg</name>
<svr-type>JSV</svr-type>
<node-name>localhost</node-name>
</svrgroup>
<svrgroup>
<name>jsvg2</name>
<svr-type>JSV</svr-type>
<node-name>localhost</node-name>
</svrgroup>
<server>
<name>html</name>
<svg-name>htmlg</svg-name>
<min-proc>1</min-proc>
<max-proc>2</max-proc>
<asq-count>1</asq-count>
</server>
<server>
<name>cgi</name>
<svg-name>cgig</svg-name>
<min-proc>1</min-proc>
<max-proc>2</max-proc>
</server>
<server>
<name>ssi</name>
<svg-name>ssig</svg-name>
<min-proc>1</min-proc>
<max-proc>2</max-proc>
</server>
<server>
<name>MyGroup</name>
<svg-name>jsvg</svg-name>
<min-proc>5</min-proc>
<max-proc>10</max-proc>
</server>
<server> <!-- 컨테이너 그룹 추가 (ws_engine.m)-->
<name>MyGroup2</name>
<svg-name>jsvg1</svg-name>
<min-proc>5</min-proc>
<max-proc>10</max-proc>
</server>
<uri>
<name>uri1</name>
<uri-def>/cgi-bin/</uri-def>
<svr-type>CGI</svr-type>
</uri>
<uri>
<name>uri2</name>
<uri-def>/webapps</uri-def>
<svr-type>JSV</svr-type>
</uri>
<uri>
<name>uri3</name>
<uri-def>/free2</uri-def>
<svr-type>JSV</svr-type>
</uri>
<uri>
<name>uri4</name>
<uri-def>/</uri-def>
<svr-type>JSV</svr-type>
</uri>
<logging>
<name>log1</name>
<format>DEFAULT</format>
<file-name>/home/free/webapps/logs/webserver/access.log</file-name>
<option>sync</option>
</logging>
<logging>
<name>log2</name>
<format>ERROR</format>
<file-name>/home/free/webapps/logs/webserver/error.log</file-name>
<option>sync</option>
</logging>
<logging>
<name>log3</name>
<format>DEFAULT</format> <!-- 추가할 컨텍스트의 로그 파일 저장 경로 (ws_engine.m) -->
<file-name>/home/free2/webapps/logs/webserver/access.log</file-name>
<option>sync</option>
</logging>
<logging>
<name>log4</name>
<format>ERROR</format>
<file-name>/home/free2/webapps/logs/webserver/error.log</file-name>
<option>sync</option>
</logging>
<ext>
<name>htm</name>
<mimetype>text/html</mimetype>
<svr-type>HTML</svr-type>
</ext>
<ext>
<name>jsp</name>
<mimetype>application/jsp</mimetype>
<svr-type>JSV</svr-type>
<svr-name>MyGroup</svr-name>
</ext>
</domain>
</ws-engine>
##############################################################################
content=Vim/7.2 name=Generator>
컨테이너 1에서 사용하는 호스트명_servlet_engine1
[jeus@localhost localhost_servlet_engine1]$ cat WEBMain.xml
<?xml version="1.0" ENCODING="UTF-8"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<context-group>
<group-name>MyGroup</group-name>
<webserver-connection>
<webtob-listener>
<listener-id>webtob1</listener-id>
<port>9900</port>
<output-buffer-size>8192</output-buffer-size>
<thread-pool>
<min>5</min>
<max>10</max>
<step>1</step>
<max-idle-time>30000</max-idle-time>
</thread-pool>
<webtob-address>127.0.0.1</webtob-address>
<registration-id>MyGroup</registration-id>
</webtob-listener>
</webserver-connection>
<print-error-to-browser>true</print-error-to-browser>
<ENCODING>
<request-ENCODING>
<default>MS949</default>
<forced>MS949</forced>
</request-ENCODING>
<response-ENCODING>
<default>MS949</default>
<forced>MS949</forced>
</response-ENCODING>
<postdata-ENCODING>
<default>MS949</default>
<forced>MS949</forced>
</postdata-ENCODING>
</ENCODING>
<jsp-engine>
<jsp-work-dir>/home/free/webapps/jspwork</jsp-work-dir>
</jsp-engine>
<logging>
<access-log>
<handler>
<file-handler>
<name>handler1</name>
<valid-day>1</valid-day>
</file-handler>
</handler>
</access-log>
</logging>
</context-group>
<session-cluster>
<session-routing>false</session-routing>
</session-cluster>
</web-container>
##############################################################################
content=Vim/7.2 name=Generator>컨테이너 2에서 사용하는 호스트명_servlet_engine2
필요한 설정부분은 그룹명과 jsp 컴파일된 클래스가 저장될 경로 변경
[jeus@localhost localhost_servlet_engine2]$ cat WEBMain.xml
<?xml version="1.0" ENCODING="UTF-8"?>
<web-container xmlns=http://www.tmaxsoft.com/xml/ns/jeus>
<context-group>
<group-name>MyGroup2</group-name>
<webserver-connection>
<webtob-listener>
<listener-id>webtob1</listener-id>
<port>9900</port> <!-- 하나의 webtob 를 공유하기때문에 통신 포트 동일-->
<output-buffer-size>8192</output-buffer-size>
<thread-pool>
<min>5</min>
<max>10</max>
<step>1</step>
<max-idle-time>30000</max-idle-time>
</thread-pool>
<registration-id>MyGroup2</registration-id>
<webtob-home>/usr/local/jeus5/webserver</webtob-home>
</webtob-listener>
</webserver-connection>
<print-error-to-browser>true</print-error-to-browser>
<ENCODING>
<request-ENCODING>
<default>MS949</default>
<forced>MS949</forced>
</request-ENCODING>
<response-ENCODING>
<default>MS949</default>
<forced>MS949</forced>
</response-ENCODING>
<postdata-ENCODING>
<default>MS949</default>
<forced>MS949</forced>
</postdata-ENCODING>
</ENCODING>
<jsp-engine>
<jsp-work-dir>/home/free2/webapps/jspwork</jsp-work-dir>
</jsp-engine>
<logging>
<access-log>
<handler>
<file-handler>
<name>handler1</name>
<valid-day>1</valid-day>
</file-handler>
</handler>
</access-log>
</logging>
</context-group>
<session-cluster>
<session-routing>false</session-routing>
</session-cluster>
</web-container>
출처 : http://javaiyagi.tistory.com/187
- 코멘트(0)|관련글(0)|스크랩(0)|좋아(0)|
- 이 포스트를...
- 블로그에 스크랩
- 클럽에 스크랩
- -------------------
- 메일보내기
- 프린트하기