7 01 2016
개발서버 – httpd+ jboss 의 Apache 설정
1)httpd.conf 설정
Include conf.d/mod_jk.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
2)/apache2/conf.d/ 안의파일 mod_jk.conf, uriworkermap.properties, workers.properties
(1) mod_jk.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# Load mod_jk m odule # Specify the filename of the mod_jk lib LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf.d/workers.properties # Where to put jk logs #JkLogFile logs/mod_jk.log JkLogFile "| /web/apache2/bin/rotatelogs /web/apache2/logs/mod_jk.log.%Y%m%d 86400" # Set the jk log level [debug/error/info] #JkLogLevel debug #JkLogLevel info JkLogLevel error # Select the log form at JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" # JkOptions indicates to send SSK KEY SIZE #JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkOptions +ForwardKeySize +ForwardURICompat +ForwardURICompatUnparsed -ForwardDirectories # JkRequestLogFormat JkRequestLogFormat "%w %V %T" # Mount your applications # The default setting only sends Java application data to mod_jk. # Use the commented-out line to send all URLs through mod_jk. # JkMount /* loadbalancer #JkMount /application/* loadbalancer #JkMountFile conf.d/uriworkermap.properties # Add sharedmemory. # This directive is present with 1.2.10 and # later versions of mod_jk, and is needed for # for load balancing to work properly JkShmFile logs/jk.shm |
(2)uriworkermap.properties
1 2 3 4 5 6 7 8 9 10 |
#/jkstatus=jkstatus #/jmx-console=loadbalancer #/jmx-console/*=loadbalancer #!/*.gif=loadbalancer #!/*.jpg=loadbalancer /=loadbalancer /*=loadbalancer |
(3)workers.properties
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#worker.list=loadbalancer,jkstatus worker.list=aaa1,bbb1 worker.template.type=ajp13 worker.template.ping_mode=A worker.aaa1.reference=worker.template worker.aaa1.host=123.123.123.123 worker.aaa1.port=8109 worker.bbb1.reference=worker.template worker.bbb1.host=123.123.123.123 worker.bbb1.port=8209 |
3)httpd-vhosts.conf
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot “/web/apache2/htdocs/aaa1”
ServerName aaa1.nuriware.com
ServerAlias aaa1.nuriware.com
ErrorLog “| /web/apache2/bin/rotatelogs /web/apache2/logs/lms-error.log.%Y%m%d 86400”
CustomLog “| /web/apache2/bin/rotatelogs /web/apache2/logs/lms-access.log.%Y%m%d 86400” common
SetEnvIf Request_URI “/webimg/*” no-jk
JkMount / aaa1
JkMount /* aaa1
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot “/web/apache2/htdocs/bbb1”
ServerName bbb1.nuriware.com
ServerAlias bbb1.nuriware.com
ErrorLog “| /web/apache2/bin/rotatelogs /web/apache2/logs/bbb1-error.log.%Y%m%d 86400”
CustomLog “| /web/apache2/bin/rotatelogs /web/apache2/logs/bbb1-access.log.%Y%m%d 86400” common
JkMount / bbb1
JkMount /* bbb1
Jenkins 설치 가이드 Linux 유용한 명령어 rename 과 mv