apache - mod_proxy/mod_proxy_ajp logging - Stack Overflow
You can add this format to httpd.conf or in Virtual Host.
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so <Proxy balancer://appcluster> BalancerMember ajp://192.168.1.1:8009/ route=tomcat01 keepalive=on retry=300 ttl=30 BalancerMember ajp://192.168.1.2:8009/ route=tomcat01 keepalive=on retry=300 ttl=30 </Proxy> NameVirtualHost *:80 <VirtualHost *:80> ServerName xyz.abc.com DocumentRoot /www LogFormat "%h \"%{BALANCER_WORKER_NAME}e\" %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" custom ErrorLog logs/app_stg-error_log CustomLog logs/app_stg-access_log custom ProxyPass / balancer://appcluster/app_stg/ stickysession=JSESSIONID|jsessionid ProxyPassReverse / balancer://appcluster/app_stg/ </VirtualHost>
Read full article from apache - mod_proxy/mod_proxy_ajp logging - Stack Overflow
No comments:
Post a Comment