[us...@httpd] 100% CPU utilization by Apache

2010-06-15 Thread Tapas Mishra
I am having a front end server as Apache for hosting many websites. Today morning any of my domains were not accessible until I did an SSH to Apache server and saw 100% CPU utilization by Apache http://farm5.static.flickr.com/4018/4704885995_cfdb374ca8_b.jpg I am using Ubuntu 10.04 what can be reas

Re: [us...@httpd] Apache getting stuck with all workers in a BUSY_READ state

2010-06-15 Thread Scott Gifford
On Tue, Jun 15, 2010 at 1:02 PM, David Fallon wrote: [ ... ] > Any suggestions on a solution, or how I might get more info out of > apache as to what it's doing while everyone's in the read state? I would try using strace (or ktrace or truss depending on your OS) on the processes to see what th

Re: [us...@httpd] I/O accounting for all processes?

2010-06-15 Thread Scott Gifford
On Tue, Jun 15, 2010 at 5:33 PM, Jakov Sosic wrote: > I'm interested in measuring I/O that all apache processes are > generating. I used mod_logio to solve a similar problem not too long ago, with good success: http://httpd.apache.org/docs/2.0/mod/mod_logio.html Scott.

[us...@httpd] mod_nss + OCSP configuration problem

2010-06-15 Thread Aruna Gummalla
Hi, I am having trouble in bringing up my Apache httpd server with the mod_nss configuration (with OCSP). I changed the nss.conf to have the following configuration NSSCertificateDatabase /usr/local/apache/nss NSSVerifyClient require NSSOCSP on NSSOCSPDefaultResponder on NSSOCSPDefaultURL htt

[us...@httpd] I/O accounting for all processes?

2010-06-15 Thread Jakov Sosic
Hi to all. I'm interested in measuring I/O that all apache processes are generating. Is that possible somehow? I know that on Linux, after 2.6.28 there is I/O accounting per PID, but that's not satisfying for me because apache PIDs in prefork mode change and are not the same... I need this to cal

[us...@httpd] Apache getting stuck with all workers in a BUSY_READ state

2010-06-15 Thread David Fallon
Hi, I've been having problems with apache becoming unresponsive, and was wondering if anyone had any suggestions on what the problem might be. Basically, periodically, apache will get into a state where all the workers are stuck reading: Server Version: Apache Server Built: Oct 21 2009 10:54:43 Cu

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tom Evans
On Tue, Jun 15, 2010 at 3:56 PM, Tapas Mishra wrote: > On Tue, Jun 15, 2010 at 8:16 PM, Tom Evans wrote: >> >> I dont understand what you are asking? - the reply comes from apache. > I could not understand I am newcomer to apache.I have used Reverse > Proxy and other settings but do not completel

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tapas Mishra
On Tue, Jun 15, 2010 at 8:16 PM, Tom Evans wrote: > > I dont understand what you are asking? - the reply comes from apache. I could not understand I am newcomer to apache.I have used Reverse Proxy and other settings but do not completely understand it. So trying to understand how apache behaves wh

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tom Evans
On Tue, Jun 15, 2010 at 3:41 PM, Tapas Mishra wrote: >> >> HTTP/1.0 clients do not send a Host header in the request >>  => no host information can be inferred from a request >>  => HTTP_HOST will be empty. > but if HTTP_HOST is empty then from where is the reply coming from ? > I dont understand

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tapas Mishra
> > HTTP/1.0 clients do not send a Host header in the request >  => no host information can be inferred from a request >  => HTTP_HOST will be empty. but if HTTP_HOST is empty then from where is the reply coming from ? -- Tapas http://mightydreams.blogspot.com http://wiki.xensource.com/xenwiki/X

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tom Evans
On Tue, Jun 15, 2010 at 3:33 PM, Tapas Mishra wrote: > On Tue, Jun 15, 2010 at 6:49 PM, Eric Covener wrote: > >> *) You Should not redirect if HTTP_HOST is empty, for HTTP/1.0 >> clients, or you might loop. > >  I could not understand your statement HTTP_HOST empty can you be a > bit explanatory.

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tapas Mishra
On Tue, Jun 15, 2010 at 6:49 PM, Eric Covener wrote: > *) You Should not redirect if HTTP_HOST is empty, for HTTP/1.0 > clients, or you might loop. I could not understand your statement HTTP_HOST empty can you be a bit explanatory.It will help newbies like me. -- Tapas http://mightydreams.blo

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Eric Covener
On Tue, Jun 15, 2010 at 9:39 AM, Tom Evans wrote: > On Tue, Jun 15, 2010 at 2:19 PM, Eric Covener wrote: >> Who can guess if that silly page meant either of these subtle issues >> with the recipe: >> >> *) ".+" in .htaccess won't match a request for "/", but I doubt that's >> the operative part o

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tom Evans
On Tue, Jun 15, 2010 at 2:19 PM, Eric Covener wrote: > Who can guess if that silly page meant either of these subtle issues > with the recipe: > > *) ".+" in .htaccess won't match a request for "/", but I doubt that's > the operative part of the exercise. > *) You Should not redirect if HTTP_HOST

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Eric Covener
On Tue, Jun 15, 2010 at 8:42 AM, Tapas Mishra wrote: > http://http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html > >  is a link to a tutorial which mentions following use of ReWriteRule is wrong. > > RewriteEngine On > RewriteBase / > > RewriteCond %{HTTP_HOST} !^www\.askap

Re: [us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tom Evans
On Tue, Jun 15, 2010 at 1:42 PM, Tapas Mishra wrote: > http://http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html > >  is a link to a tutorial which mentions following use of ReWriteRule is wrong. > > RewriteEngine On > RewriteBase / > > RewriteCond %{HTTP_HOST} !^www\.askap

[us...@httpd] rewrite rule tutorial on ask apache I could not understand syntax

2010-06-15 Thread Tapas Mishra
http://http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html is a link to a tutorial which mentions following use of ReWriteRule is wrong. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC] RewriteRule .+ http://www.askapache.com%{REQUEST_UR

Re: [us...@httpd] RE: Where should I start Logging..... ?

2010-06-15 Thread Eric Covener
On Tue, Jun 15, 2010 at 6:52 AM, Karthik Nanjangude wrote: > Hi > > Is there a Timestamp validation in Apache before which the "Bad Gate way is > displayed ? > > If yes where need to fine tune > If no  What is the cause of this Bad Gate way at Apache level ,if the  Web > container at internal po

RE: [us...@httpd] RE: Where should I start Logging..... ?

2010-06-15 Thread Karthik Nanjangude
Hi Is there a Timestamp validation in Apache before which the "Bad Gate way is displayed ? If yes where need to fine tune If no What is the cause of this Bad Gate way at Apache level ,if the Web container at internal port is displaying the correct info ? With regards karthik -Origina