Embed presentation
Download to read offline









![Apache Commands
• Command to count individual URLs
• cat access.log | cut -d" -f2 | awk '{print $1 " " $2}' | cut -d? -f1 | sort | uniq -c
| sort –n
• Command to count total URLs per minute
• grep "05/Jan/2018:" access.log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print
$2":"$3}' | sort -nk1 -nk2 | uniq -c | awk '{ if ($1 > 10) print $0}'](https://image.slidesharecdn.com/apachearchitecture-200730083717/75/Apache-architecture-10-2048.jpg)

The document discusses the Apache architecture for handling static and dynamic requests on a website. It describes how Apache serves static content like images directly from the server, while dynamic pages requiring database queries or API calls are also cached using techniques like progressive caching, page caching, and Varnish. It provides threshold values to monitor Apache performance and lists commands to analyze Apache log files and count URLs by minute to optimize resource usage.









![Apache Commands
• Command to count individual URLs
• cat access.log | cut -d" -f2 | awk '{print $1 " " $2}' | cut -d? -f1 | sort | uniq -c
| sort –n
• Command to count total URLs per minute
• grep "05/Jan/2018:" access.log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print
$2":"$3}' | sort -nk1 -nk2 | uniq -c | awk '{ if ($1 > 10) print $0}'](https://image.slidesharecdn.com/apachearchitecture-200730083717/75/Apache-architecture-10-2048.jpg)