[users@httpd] deny announce.php torrent requests

2015-03-11 Thread el kalin
hi all… i have a bit of an issue with torrent announce.php?info_hash= requests. it sure feels like some sort of dos or ddos. i have tried different ways to configure apache to drop those request using mod_security, mod_rewrite, etc but never the less i still see a lot of ESTABLISHED states that ju

Re: [users@httpd] CustomLog fails when piped to sed

2015-03-11 Thread Yann Ylavic
On Thu, Mar 12, 2015 at 12:03 AM, Yann Ylavic wrote: > > With Apache 2.4.x, you probably have to use : > > CustomLog "$|/bin/sed -r s/pass/REDACTED/g >> /workplace/tmp/access.log" > common Oups, I meant "|$...", with the $ *after* the |. -

Re: [users@httpd] CustomLog fails when piped to sed

2015-03-11 Thread Yann Ylavic
On Wed, Mar 11, 2015 at 11:10 PM, Debajit Adhikary wrote: > > CustomLog "|/bin/sed -r s/pass/REDACTED/g >> /workplace/tmp/access.log" common > > However, when I make a request to Apache, I get an error saying > > /bin/sed: can't read >>: No such file or directory > > How can I get this working? (I

[users@httpd] CustomLog fails when piped to sed

2015-03-11 Thread Debajit Adhikary
I am trying to use a piped CustomLog to filter my logs: httpd.conf:CustomLog "|/bin/sed -r s/pass/REDACTED/g >> /workplace/tmp/access.log" common However, when I make a request to Apache, I get an error saying/bin/sed: can't read >>: No such file or directory How can I get this working? (It see

[users@httpd] RAM/CPU calculations when using PHP-FPM and Apache 2.4

2015-03-11 Thread Rose, John B
Is this the correct process? To determine how much RAM/CPU to provide for a VM web server, calculate the average RES value in "top" for httpd processes. Then calculate the average RES value for php-fpm processes. Then add those 2 values together. Then multiply by the max number of concurrent co