Added by Joshua McGinnis 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
Added by Joshua McGinnis 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
Get in touch!
Los Angeles, CA USA
Telephone: (310) 228-8264
Email: joshua@mcginn.is