Re: [users@httpd] Apache HTTPD Sporadic High CPU

2012-04-10 Thread Jeff Trawick
On Tue, Apr 10, 2012 at 9:07 PM, Bill Bawcombe wrote: > CA wasn't much help at all but that is pretty typical. > > We are requesting sudo access to pstack and truss and a few other utilities > as my team is application specific and we don't have root access.  I was > hoping someone may have run

RE: [users@httpd] Apache HTTPD Sporadic High CPU

2012-04-10 Thread Bill Bawcombe
CA wasn't much help at all but that is pretty typical. We are requesting sudo access to pstack and truss and a few other utilities as my team is application specific and we don't have root access. I was hoping someone may have run into an issue like this before but the one thread I've found

Re: [users@httpd] Apache HTTPD Sporadic High CPU

2012-04-10 Thread Jeff Trawick
On Tue, Apr 10, 2012 at 5:51 PM, Bill Bawcombe wrote: > We are sporadically experiencing high CPU with our Apache instances. > The CPU averages about 5% utilization normally and has run fine for over > a year without an issue but over the past month we see spikes up to 100% > utilization that neve

[users@httpd] Apache HTTPD Sporadic High CPU

2012-04-10 Thread Bill Bawcombe
We are sporadically experiencing high CPU with our Apache instances. The CPU averages about 5% utilization normally and has run fine for over a year without an issue but over the past month we see spikes up to 100% utilization that never drop until the instance is bounced. We can go up to a week b

[users@httpd]

2012-04-10 Thread Peter Maguire
http://mazwoodworking.com/cache/fidmnrl.html?tuj=pk.png&sdvb=wrg.php&tnsbf=urgu

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Daniel Gruno
On 10-04-2012 17:49, Daniel Gruno wrote: > On 10-04-2012 17:36, Pierre-Rudolf Gerlach wrote: >> My bad for the missing quote, I changed the values in the exemple >> without re-testing it, sorry. >> >> You example works for a deny. However, if I slightly modify it, >> replacing "Require all denied"

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Daniel Gruno
On 10-04-2012 18:59, Pierre-Rudolf Gerlach wrote: > I just tried from a fresh checkout of branch 2.4.x (Apache 2.4.3-dev), > using the shipped default config, and still myothervar is null. > Same result with tags/2.4.2 ... > > Do you confirm you did just create a .htaccess with the content of my >

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Pierre-Rudolf Gerlach
On Tue, Apr 10, 2012 at 6:04 PM, Pierre-Rudolf Gerlach wrote: > On Tue, Apr 10, 2012 at 5:49 PM, Daniel Gruno wrote: >> I have tried inputting exactly what you wrote into my configuration, and >> the output I got was: >> >>  HTTP/1.1 200 OK >>  ... >>  myvar: value >>  myothervar: othervalue >>  

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Pierre-Rudolf Gerlach
On Tue, Apr 10, 2012 at 5:49 PM, Daniel Gruno wrote: > I have tried inputting exactly what you wrote into my configuration, and > the output I got was: > >  HTTP/1.1 200 OK >  ... >  myvar: value >  myothervar: othervalue >  Content-Type: text/html !!! > So it _should_ work, unless you have some

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Daniel Gruno
On 10-04-2012 17:36, Pierre-Rudolf Gerlach wrote: > > My bad for the missing quote, I changed the values in the exemple > without re-testing it, sorry. > > You example works for a deny. However, if I slightly modify it, > replacing "Require all denied" by a variable setting, like this > > SetEnvIf

Re: [users@httpd] How to enable deflate content-encoding with Apache2 mod_deflate?

2012-04-10 Thread Eric Covener
On Tue, Apr 10, 2012 at 11:20 AM, howard chen wrote: > Hi, > > > On Mon, Apr 9, 2012 at 7:01 PM, Eric Covener wrote: >> mod_deflate only does one kind of encoding, but I couldn't tell you if >> it's actually more gzip then deflate or vice versa wrt 2616. >> > > I am already using > > AddOutputFil

Re: [users@httpd] mod_proxy: ProxyPreserveHost omits start of proxied path

2012-04-10 Thread Ron Van den Branden
Hi, On 30/03/2012 12:39, Tom Evans wrote: On Fri, Mar 30, 2012 at 11:14 AM, Bruno Tréguier wrote: Would it be possible for you to do new captures of the network traffic, but in "pcap" format ? That way we could use tools like wireshark to analyse the traces, instead of the ascii dump you provi

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Pierre-Rudolf Gerlach
On Tue, Apr 10, 2012 at 5:25 PM, Daniel Gruno wrote: > I tested an If-clause on my 2.4 using the following example: > > SetEnvIf dummy .* myvar=value > >  Require all denied > > > And lo and behold, I got access denied, so it should be working as > intended, provided you fix your type :) My bad

Re: [users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Daniel Gruno
On 10-04-2012 17:15, Pierre-Rudolf Gerlach wrote: > Hello, > > I have a website hosted in a shared environment, so I only have access > to a .htaccess file to configure stuff. I'm running on Apache 2.4.1. > > I would like to to something like > - test the user-agent against a regexp and set a vari

Re: [users@httpd] How to enable deflate content-encoding with Apache2 mod_deflate?

2012-04-10 Thread howard chen
Hi, On Mon, Apr 9, 2012 at 7:01 PM, Eric Covener wrote: > mod_deflate only does one kind of encoding, but I couldn't tell you if > it's actually more gzip then deflate or vice versa wrt 2616. > I am already using AddOutputFilterByType DEFLATE text/html text/plain text/xml So I suppose it is

[users@httpd] test against env variable previously defined by SetEnvIf

2012-04-10 Thread Pierre-Rudolf Gerlach
Hello, I have a website hosted in a shared environment, so I only have access to a .htaccess file to configure stuff. I'm running on Apache 2.4.1. I would like to to something like - test the user-agent against a regexp and set a variable according to this - test if this variable is set and do

[users@httpd] Question regarding apache not listening on port 80 and 443.....

2012-04-10 Thread Mark Hamer
Hello all Basically I have 2 versions of apache installed.One is an older 2.2.8 and the other an updated version of 2.2.21. When I shutdown the older version and start the newer version up to use port 80 and 443 it is not working.Both are set up to use port 80 and 443 but I only u

Re: [users@httpd] httpd 2.4.1 -t option return code results always in 0

2012-04-10 Thread Jeff Trawick
On Tue, Apr 10, 2012 at 9:57 AM, Richard Westebbe wrote: > Hi, > > it looks like I stumbled across an bug in httpd 2.4.1, when I tried to > modify the init script to make a configtest before a restart. > > I evaluate the return code of the -t option, to decide whether I should > restart the web se

Re: [users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread Luc Saffre
Tilt, I got it! Thanks again, Eric, and Aparna. To try your suggestions I dived more into the details of Apache config specials on Debian (http://www.control-escape.com/web/configuring-apache2-debian.html) and finally found that there was indeed another "NameVirtualHost *:80" in `/etc/apache2/port

Re: [users@httpd] Will wildcard vhost conflict with a specific one?

2012-04-10 Thread Eric Covener
> I strongly believe apache will be smart enough to make the wildcard vhost be > the last match for its requests, but I'm not sure. It's the first match in order the config is loaded that matters, independent of whether it was servername, serveralias, or a wildcard of either one.

[users@httpd] Will wildcard vhost conflict with a specific one?

2012-04-10 Thread Luis Fernando Alen
Hello, I need to set both a generic/wildcard vhost and a specific one with different DocumentRoot and configurations, just like the example below: ** *ServerName specific.mydomain.com* * * *DocumentRoot /var/www/specific.mydomain.com/* *JkMount /otherapp serverX* *JkMount /otherap

[users@httpd] httpd 2.4.1 -t option return code results always in 0

2012-04-10 Thread Richard Westebbe
Hi, it looks like I stumbled across an bug in httpd 2.4.1, when I tried to modify the init script to make a configtest before a restart. I evaluate the return code of the -t option, to decide whether I should restart the web server or not. Regarding to the manpage this option should result

Re: [users@httpd] Caching webservice calls using apache

2012-04-10 Thread aparna Puram
Thanks a lot Mark I will check with the applicaiton once and come back to you on this. On Tue, Apr 10, 2012 at 5:56 PM, Mark Montague wrote: > On April 10, 2012 4:31 , aparna Puram wrote: > >> Currently we have only a tomcat installed and all are directly accessing >> the tomcat via apache, An

Re: [users@httpd] Caching webservice calls using apache

2012-04-10 Thread Mark Montague
On April 10, 2012 4:31 , aparna Puram wrote: Currently we have only a tomcat installed and all are directly accessing the tomcat via apache, And all the webserivice calls are directly being called from tomcat and this inturn is increasing the load on the tomcat server. Is there a way to cach

Re: [users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread aparna Puram
Hi, Did u try rebuilding the apache config file using the following script? /scripts/rebuildhttpdconf On Tue, Apr 10, 2012 at 4:38 PM, Luc Saffre wrote: > Thanks, Eric and Rainer, for your replies. > > On 10.04.2012 10:26, Rainer Frey wrote: > > 2 ideas: > > * the default site is not enabled

Re: [users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread Eric Covener
> # grep NameVirtual /etc/apache2/sites-enabled/* > NameVirtualHost *:80 try a more comprehensive search? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread Luc Saffre
Thanks, Eric and Rainer, for your replies. On 10.04.2012 10:26, Rainer Frey wrote: > 2 ideas: > * the default site is not enabled (see /etc/apache2/sites-enabled - there > should be a 000-default symlink) > * your apache starts with a completely different config I forget to mention that I had te

Re: [users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread Eric Covener
You have another "NameVirtualHost *:80" in your configuration, try grep. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org

RE: [users@httpd] Slow mod_proxy response

2012-04-10 Thread Shirley . Ong
I thought so too. However the response from the office network on port 8080 (Glassfish) is fast. So the slow response is only seen when accessing the page on port 80 (via mod_proxy) from the office network. Thanks Shirley -Original Message- From: Yehuda Katz [mailto:yeh...@ymkatz.net]

[users@httpd] Caching webservice calls using apache

2012-04-10 Thread aparna Puram
Hello All, Can we cache webservice calls using Apache. Currently we have only a tomcat installed and all are directly accessing the tomcat via apache, And all the webserivice calls are directly being called from tomcat and this inturn is increasing the load on the tomcat server. Is there a way t

Re: [users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread Rainer Frey
On 10.04.2012, at 09:12, Luc Saffre wrote: > Hi, > > I keep getting a "NameVirtualHost *:80 has no VirtualHosts" warning with > the configuration below. Apache version 2.2.16. > Please help me by giving your opinion about what might be wrong! > Content of /etc/apache2/sites-available/default 2

[users@httpd] NameVirtualHost has no VirtualHosts

2012-04-10 Thread Luc Saffre
Hi, I keep getting a "NameVirtualHost *:80 has no VirtualHosts" warning with the configuration below. Apache version 2.2.16. It is on server named "jana", 192.168.1.103, accessible only from my LAN. I read the following documentation sections: - Name-based Virtual Host Support - VirtualHost Examp