Category Archive
for: ‘Apache’

View Realtime Requests Per Second From Log

Added by on January 28th, 2009, filed under Apache, PHP

so you want to view the number of requests to your webserver per second. here’s a quick and easy php script that you can run from command line. 1234while(true){     echo exec(’cat /var/log/httpd/access_log | wc -l’) . "n";     sleep(1);   } it isn’t perfect, but it will work for doing some basic [...]

No Comments ~ Add your thoughts | Continue Reading

rewrites

Added by on January 4th, 2008, filed under Apache

this beast caused me so many issues…. Options +FollowSymLinksRewriteEngine OnRewriteBase / RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?section=$1 RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/([^/]+)/?$ /index.php?section=$1&page=$2 [PT]

No Comments ~ Add your thoughts | Continue Reading