RE: [us...@httpd] REMOTE_USER and PROXY request

2009-05-28 Thread Efjestad, Dag
Thanks Tom, I think I got it now. It was about the + sign. If I did match against "RewriteCond %{LA-U:REMOTE_USER} (.*)" - the condition was true even if the REMOTE_USER was empty. The result was that the proxy request was done before there was a value. As our log shows the REMOTE_USER is fill

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Sander Temme
On May 28, 2009, at 12:55 PM, CrystalCracker wrote: Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChil

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Sean Conner
It was thus said that the Great Doug Bell once stated: > On May 28, 2009, at 2:55 PM, CrystalCracker wrote: > > >I have at least 20 active apache threads (ps -ef | grep httpd), average > >is about 40 threads and goes upto 70 at the peak. Does the above setting > >sounds resonable? > > MaxClients

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread André Warnier
CrystalCracker wrote: Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChild 4000 I have at least 2

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Doug Bell
On May 28, 2009, at 4:19 PM, CrystalCracker wrote: MaxClients at 250 means that potentially 250 httpd processes can be running at once. Do you have the memory to support that many without swapping? Swapping usually ends up killing a system, especially if it's already handling a lot of disk i/o

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread CrystalCracker
>>MaxClients at 250 means that potentially 250 httpd processes can be >>running at once. Do you have the memory to support that many without >>swapping? Swapping usually ends up killing a system, especially if >>it's already handling a lot of disk i/o. Regarding MaxClients at 250, the only

Re: [us...@httpd] ap_build_config don't seem to work any more

2009-05-28 Thread Turbo Fredriksson
Never mind. I managed to find and fix the problem all (almost! :) by myself. It was a uninitialized variable used by ap_build_config(). - The official User-To-User support forum of the Apache HTTP Server Project. See http://http

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Doug Bell
On May 28, 2009, at 2:55 PM, CrystalCracker wrote: Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChild

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread CrystalCracker
Thanks a lot for the response. I will do some ab and siege tests to verify it, but I am trying to conceptually understand it first. StartServers 5 MinSpareServers 5 MaxSpareServers 20 MaxClients250 MaxRequestsPerChild 4000 I have at least 20 active apache threads (

Re: [us...@httpd] ap_build_config don't seem to work any more

2009-05-28 Thread Turbo Fredriksson
On 28 maj 2009, at 20.08, Turbo Fredriksson wrote: Any examples on how to use ap_build_config()? By the way, here's a backtrace: - s n i p - (gdb) bt #0 0x0043b073 in ap_build_config () #1 0x2b6171a83d6f in ldap_cfg_apache_command_loop (args=0x7fff3f922040) at mod_ldap

[us...@httpd] ap_build_config don't seem to work any more

2009-05-28 Thread Turbo Fredriksson
My module, http://modldapcfg.bayour.com/, seem to have stopped working! I don't run it personaly any more, because i had to (temporarily I hope) retire my servers... But I got access to a users/downloaders virtual machine and managed to test things. Eventually, I got the module to stop segfault

Re: [us...@httpd] How does Prefork work?

2009-05-28 Thread Doug Bell
On May 27, 2009, at 11:14 PM, CrystalCracker wrote: Can anyone explain me how exactly prefork works? StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 ServerLimit 16 Prefork works by spawning one process to handle one connection. So here, Apache can spa

Re: [us...@httpd] sharing data between two different apache modules

2009-05-28 Thread Atanu
My setup is Apache 2.x and mod_perl 2.x and AuthCookie(Apache-AuthCookie-3.12). I have been able to do a cookie based authentication with a (hardcoded) user-name and password (of course from the sample files and configurations) and on authentication success have been able to proxy the request to a

Re: [us...@httpd] Number of httpd process spikes

2009-05-28 Thread Tom Evans
On Thu, 2009-05-28 at 11:44 -0400, Jones, Keven wrote: > Hello, > > The number of httpd processes on my web server is at times spiking for > no apparent reason. I have setup > Monitoring and as an example: > Ps -ef |grep httpd|wc -l returns: > > 260 at 8:40 > 332 at 8:41 > 403 at 8:42 > 570 at

[us...@httpd] Number of httpd process spikes

2009-05-28 Thread Jones, Keven
Hello, The number of httpd processes on my web server is at times spiking for no apparent reason. I have setup Monitoring and as an example: Ps -ef |grep httpd|wc -l returns: 260 at 8:40 332 at 8:41 403 at 8:42 570 at 8:43 564 at 8:44 449 at 8:45 332 at 8:46 Here are the numbers just before 8:4

Re: [us...@httpd] Not able to start Apache

2009-05-28 Thread Arnab Ganguly
Thanks for the help.Got it resolved by changing SELINUX=disabled in /etc/sysconfig/selinux.It looks like SeLinux changes some system default behaviour, including the shared library loading. All are from google search :)) still lot of things to learn :(( Regards -A On Thu, May 28, 2009 at 7:13 PM,

[us...@httpd] Re: Close apache console from XP/2003/Vista

2009-05-28 Thread Matthew Gregory
Sucess! I ended up not going down the GenerateConsoleEvent but your suggestion inspired me to do some digging. I read on the win32 api help a while that GenerateConsoleEvent will basically just call the registered the even handler, so I searched through the source code to see if I could find i

Re: [us...@httpd] Not able to start Apache

2009-05-28 Thread Eric Covener
On Thu, May 28, 2009 at 9:25 AM, Arnab Ganguly wrote: > Hi All, > This is related to Apache start.I have written Apache module, but not able > to start it.I am getting the following error as "cannot restore segment prot > after reloc: Permission denied". > > This is not happening in all the machin

[us...@httpd] Not able to start Apache

2009-05-28 Thread Arnab Ganguly
Hi All, This is related to Apache start.I have written Apache module, but not able to start it.I am getting the following error as "*cannot restore segment prot after reloc: Permission denied*". This is not happening in all the machines this is surprising to me.Same module works perfectly in other

RE: [us...@httpd] REMOTE_USER and PROXY request

2009-05-28 Thread Tom Evans
On Thu, 2009-05-28 at 13:58 +0200, Efjestad, Dag wrote: > No, when I do this the value in RewriteCond is null. > > From logfile: > lookahead: path=/kongsberg/ var=REMOTE_USER -> val= > RewriteCond: input='' pattern='(.*)' => matched > > -Opprinnelig melding- > Fra: Tom Evans [mailto:tevan

[us...@httpd] Re: Close apache console from XP/2003/Vista

2009-05-28 Thread Matthew Gregory
Thanks for this, I had tried the GenerateConsoleEvent api before without success, although reading that page the author is creating a remote thread to call the api from within the Apache process rather than externally so I'll play around with that. Thanks, Matt Eric Covener wrote: On Thu, Ma

RE: [us...@httpd] REMOTE_USER and PROXY request

2009-05-28 Thread Efjestad, Dag
No, when I do this the value in RewriteCond is null. >From logfile: lookahead: path=/kongsberg/ var=REMOTE_USER -> val= RewriteCond: input='' pattern='(.*)' => matched -Opprinnelig melding- Fra: Tom Evans [mailto:tevans...@googlemail.com] Sendt: 28. mai 2009 11:49 Til: users@httpd.apache

Re: [us...@httpd] Close apache console from XP/2003/Vista

2009-05-28 Thread Eric Covener
On Thu, May 28, 2009 at 7:19 AM, Matthew Gregory wrote: > My question is this: how can I gracefully close apache? The docs say to use > "httpd -k stop" but on our target platforms this always tries to stop the > service but we are actually running as a console. There is mention of using > kill on

[us...@httpd] Close apache console from XP/2003/Vista

2009-05-28 Thread Matthew Gregory
Hi All, This is my first post to this mailing list, I have tried searching for an answer in the archives and on google with no luck. Background: We currently have a web server application that we sell comercially, we are currently rewriting this and have gone down the ISAPI route. To make th

Re: [us...@httpd] Where to put .htpassd on CentOS?

2009-05-28 Thread Dirk GROSSE OSTERHUES
Hello, is doesn't quite matter where you put the password and group files. For security reasons you just shouldn't put them into a folder that is accessible through the web. Just make sure you reference those files correctly in your .htaccess-files, e.g.: > AuthUserFile/etc/apache2/htus

[us...@httpd] Use of NoProxy without a DNS lookup

2009-05-28 Thread David Vaughan
Hi there. I have an Apache server (2.2.11 running on Windows XP) which acts as a forward proxy for a small network connected via a slow IP link to a main proxy server. The network has an intranet so the NoProxy command is used to prevent sending these requests to the main proxy. However this cau

Re: [us...@httpd] REMOTE_USER and PROXY request

2009-05-28 Thread Tom Evans
On Thu, 2009-05-28 at 10:52 +0200, Efjestad, Dag wrote: > Hi. > > I can't get access to the REMOTE_USER value when I do a proxy request. The > value is empty. > RewriteRule ^/kongsberg(.*) http://aeoas02/kongsberg/%{LA-U:REMOTE_USER}$1 > [P,L] > > For rewrite against directory URL's I get the

[us...@httpd] REMOTE_USER and PROXY request

2009-05-28 Thread Efjestad, Dag
Hi. I can't get access to the REMOTE_USER value when I do a proxy request. The value is empty. RewriteRule ^/kongsberg(.*) http://aeoas02/kongsberg/%{LA-U:REMOTE_USER}$1 [P,L] For rewrite against directory URL's I get the value. RewriteRule ^/kongsberg(.*) /kongsberg/%{LA-U:REMOTE_USER}$1 [L]