d amazon repo httpd 최신버전 확인 httpd.x86_64 2.4.39-1.amzn2.0.1 #httpd install yum install httpd ================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================ Installing: httpd x86_64 2.4.39-1.amzn2.0.1 amzn2-core 1.3 M Installing for dependencies: apr x86_64 1.6.3-5.amzn2.0.2 amzn2-core 118 k apr-util x86_64 1.6.1-5.amzn2.0.2 amzn2-core 99 k apr-util-bdb x86_64 1.6.1-5.amzn2.0.2 amzn2-core 19 k generic-logos-httpd noarch 18.0.0-4.amzn2 amzn2-core 19 k httpd-filesystem noarch 2.4.39-1.amzn2.0.1 amzn2-core 23 k httpd-tools x86_64 2.4.39-1.amzn2.0.1 amzn2-core 87 k mailcap noarch 2.1.41-2.amzn2 amzn2-core 31 k mod_http2 x86_64 1.15.1-1.amzn2 amzn2-core 147 k yum install httpd-devel ================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================ Installing: httpd-devel x86_64 2.4.39-1.amzn2.0.1 amzn2-core 204 k Installing for dependencies: apr-devel x86_64 1.6.3-5.amzn2.0.2 amzn2-core 207 k apr-util-devel x86_64 1.6.1-5.amzn2.0.2 amzn2-core 81 k cyrus-sasl x86_64 2.1.26-23.amzn2 amzn2-core 87 k cyrus-sasl-devel x86_64 2.1.26-23.amzn2 amzn2-core 310 k expat-devel x86_64 2.1.0-10.amzn2.0.2 amzn2-core 57 k libdb-devel x86_64 5.3.21-24.amzn2.0.3 amzn2-core 39 k openldap-devel x86_64 2.4.44-15.amzn2 amzn2-core 803 k Transaction Summary ================================================================================================================================================================================ #httpd start systemctl start httpd #httpd stop systemctl stop httpd #httpd mod_jk install wget http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.46-src.tar.gz cd tomcat-connectors-1.2.46-src/native sudo ./configure --with-apxs=/usr/bin/apxs mkae; make install #httpd config 설정 파일내용 #mod-jk.conf # Where to find workers.properties JkWorkersFile conf/workers.properties LoadModule jk_module modules/mod_jk.so # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # 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 will be checked for updates each 60 seconds. # The format of the file is: /url=worker # /examples/*=loadbalancer JkMountFile conf.d/uriworkermap.properties # Add shared memory. # 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 # Add jkstatus for managing runtime data JkMount status Order deny,allow Deny from all Allow from 127.0.0.1 #uriworkermap.properties # Simple worker configuration file # Refet to http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html # Mount the Servlet context to the ajp13 worker /*.jsp=loadbalancer /*.do=loadbalancer #/seller=loadbalancer #/seller/*=loadbalancer #workers.properties # Define list of workers that will be used # for mapping requests worker.list=loadbalancer,status ################################## # default configuration template # ################################## worker.template.type=ajp13 worker.template.lbfactor=1 worker.template.maintain=30 worker.template.socket_keepalive=True worker.template.socket_connect_timeout=3000 #worker.template.socket_timeout=60 worker.template.ping_mode=A worker.template.ping_timeout=5000 #worker.template.reply_timeout=45000 #worker.template.connection_pool_timeout=30 worker.template.connection_pool_timeout=180 worker.template.connection_pool_size=15 #worker.template.retries=2 worker.template.recovery_options=7 # Define Node1 # modify the host as your host IP or DNS name. worker.node1.reference=worker.template worker.node1.port=8009 worker.node1.host=127.0.0.1 # Define Node2 # modify the host as your host IP or DNS name. worker.node2.reference=worker.template worker.node2.port=8109 worker.node2.host=127.0.0.1 # Load-balancing behaviour worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1 worker.loadbalancer.sticky_session=1 # Status worker for managing load balancer worker.status.type=status #httpd mod_jk wget http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.46-src.tar.gz cd tomcat-connectors-1.2.46-src/native sudo ./configure --with-apxs=/usr/bin/apxs mkae; make install #httpserver 서버정보 아이피: 13.124.162.209 포트: 80 백엔드 톰캣 연동시 .do, .jsp 파일만 처리가능하게 설정 톰캣과 연동 호출시 was 처리하는 리소스 파일이름을 입력하면 됩니다. http://13.124.162.209/index.jsp