[JBCS-httpd24-2.4] JBCS Apache 2.4.37 SP7 주요 설정 내용
본문 바로가기
IT 이야기/Apache

[JBCS-httpd24-2.4] JBCS Apache 2.4.37 SP7 주요 설정 내용

by 찬찬이 아빠 2021. 8. 12.
반응형
  1. JBCS Apache 버전 정보
버전 출시일
2.4.37 SP7 2021-02-11

 

  2. JBCS Apache 주요 설정 내용

※ APACHE_HOME : /APACHE/jbcs-httpd24-2.4/httpd/

 

1) APACHE_HOME/conf/httpd.conf

### Section 1: Global Environment
ServerRoot "/APACHE/jbcs-httpd24-2.4/httpd"

PidFile /APACHE/jbcs-httpd24-2.4/httpd/run/httpd.pid

Timeout 60

KeepAlive On

MaxKeepAliveRequests 1000

KeepAliveTimeout 5

Listen 80

Incloude conf.modules.d/*.conf

ExtendedStatus On

User nobody
Group nobody


# Section 2: 'Main' server configuration

ServerAdmin Administrator@localhost

ServerName localhost

UseCanonicalName Off

DocumentRoot "/WebApp/www"

<Directory />
#	AllowOverride AuthConfig
	Require all denied
    LimitRequestBody 5000000
</Directory>

<Directory "/WebApp/www">
	Options None
#	AllowOverrid None
	Require all granted
    <LimitExcept GET POST HEAD>
    	require all denied
    </LimitExcept>
    LimitRequesstBody 500000
</Directory>

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

<Files ~ "^\.ht">
	Require all denied
</Files>

TypesConfig "/etc/mime.types"

<IfModule mod_mime_magic.c>
	MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

<IfModule reqtimeout_module>
	RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
<IfModule>

ErrorLog "|/APACHE/jbcs-httpd24-2.4/httpd/sbin/rotatelogs /APACHE/LOG/error_log.%Y%m%d 86400 +540"

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> "%U" referer
LogFormat "%{User-agent}i" agent

SetEnvIfNocase Request_URI "\.(gif|jpg|ico|js|css|png|swf)$" do_not_log
CustomLog "|/APACHE/jbcs-httpd24-2.4/httpd/sbin/rotatelogs /APACHE/LOG/access_log.%Y%m%d 86400 +540" combined env=!do_not_log

ServerSignature Off

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/txt.gif) txt/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2..gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/bianry.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl.py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

ForceLanguagePriority Prefer Fallback

AddDefaultCharset UTF-8

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

Addhandler type-map var

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

	ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
    
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch ".*MSIE [2-5]\..*" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

<Location /server-status>
	SetHandler server-status
    Require all denied
    Require host localhost
</Location>


### Section 3: Virtual Hosts
TraceEnable Off

IncludeOptional conf.d/*.conf

 

2) APACHE_HOME/conf.d/mod_jk.conf

# Load mod_jk module
# 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 "|/APACHE/jbcs-httpd24-2.4/httpd/sbin/rotatelogs /APACHE/LOG/modjk-log/mod-jk.log.%Y%m%d 86400 +540"

# set the jk log level [debug/error/info]
JkLogLevel error

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"

# Mount your applications
# JkMount /application/* loadbalancer

# You can use external file for mount points.
# It willbe checked for updates each 60 seconds.
# The format of fthe file is: /uri=worker
JkmountFile conf.d/uriworkermap.properties

# Add shared memory.
# This directive si present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile /APACHE/LOG/modjk-log/mod-jk.shm

 

3) APACHE_HOME/conf.d/uriworkermap.properties

# Maping test
/*=wlb

 

4) APACHE_HOME/conf.d/workers.properties

worker.list=wlb,jkstatus

# configuration common
worker.common.type=ajp13
worker.common.lbfactor=1
worker.common.socket_timeout=60
worker.common.socket_keepalive=true
worker.common.recovery_options=7
worker.common.ping_mode=A
worker.common.ping_timeout=10000
worker.common.connection_pool_size=64
worker.common.connection_pool_minsize=32
worker.common.connection_pool_timeout=60
worker.common.secret=Q2xvdWQxMjMj

worker.AP_name10.reference=worker.common
worker.AP_name10.host=was1
worker.AP_name10.port=8009

#worker.AP_name20.reference=worker.common
#worker.AP_name20.host=was2
#worker.AP_name20.port=8009

# configuration loadbalancer
worker.wlb.type=lb
worker.wlb.retries=2
worker.wlb.method=Session
worker.wlb.sticy_session=True
worker.wlb.balance_workers=AP_name10

worker.jkstatus.type=status

 

5) APACHE_HOME/conf.modules.d/00-base.conf

--- 생략 ---
DefaultRuntimeDir /APACHE/jbcs-httpd24-2.4/httpd/run

 

6) APACHE_HOME/conf.modules.d/00-mpm.conf

# Select the MPM module
LoadModule mpm_worker_module modules/mod_mpm_worker.so

# Worker MPM
<IfModule worker.c>
StartServers		3
ServerLimt		16
MaxRequestWorkers	1024
MinSpareThreads		192
MaxSpareThreads		256
ThreadsPerChild		64
ThreadLimit		64
MaxConnectionsPerchild	0
</IfModule>

 

7) APACHE_HOME/sbin/apachectl

--- 생략 ---
# the path to your httpd binary, including options if necessary
HTTPD='/APACHE/jbcs-httpd24-2.4/httpd/sbin/httpd'

# the options for httpd command
OPTIONS="-f /APACHE/jbcs-httpd24-2.4/httpd/conf/httpd.conf"

# the library path
export LD_LIBRARY_PATH="/APACHE/jbcs-httpd24-2.4/httpd/lib:$LD_LIBRARY_PATH"

# JBCS-239
export OPENSSL_ENGINES="/APACHE/jbcs-httpd24-2.4/httpd/lib/engines-1.1"

--- 생략 ---
반응형

댓글