-
Home
- Co 246 - web server administration
- Co 246 - web server administration
- Apache httpd web server - logs
1. Enable extended server status in httpd.conf file.
You can find instructions in the Apache manual http://httpd.apache.org/docs/2.0/mod/mod_status.html2. Generate Apache activity:
apache/bin/ab -n 200 -c 1 http://localhost:8080/apache/bin/ab -n 200000 -c 1000 http://localhost:8080/
3. View the server status at:http://localhost:8080/server-status
4. Monitor log files at apache/logs/tail -f apache/logs/access_log
5. Generate error logs:apache/bin/ab -n 200 -c 1 http://localhost:8080/`date +%s`
for ((i=1;i<5;i+=1)); do apache/bin/ab -n 2 -c 1 http://localhost:8080/`date +%s`; sleep 2; done;
Monitor log files at apache/logs/
cat /home/knoppix/apache/logs/access_log
Source:
OpenStax, Co 246 - web server administration and security. OpenStax CNX. Nov 01, 2012 Download for free at http://cnx.org/content/col11452/1.1
Google Play and the Google Play logo are trademarks of Google Inc.