[us...@httpd] httpd to get process list

2010-05-27 Thread James Corteciano
Hi All, I have a nagios server to monitor the remote apache server and automatically restarting the service if it is detected unreachable. Now, in times of apache down, I just want to get the processes list or any means that could help during diagnostic operation. Can anyone recommend any good app

Re: [us...@httpd] httpd to get process list

2010-05-27 Thread J. Bakshi
On 05/27/2010 12:42 PM, James Corteciano wrote: > Hi All, > > I have a nagios server to monitor the remote apache server and > automatically restarting the service if it is detected unreachable. > Now, in times of apache down, I just want to get the processes list or > any means that could help dur

Re: [us...@httpd] Apache MPM

2010-05-27 Thread Nilesh Govindarajan
On Thu, May 27, 2010 at 11:56 AM, Nasir Zia wrote: > Hi, > > how can i decide to use prefork or worker MPM. Can anyone describe in detail > and how can i make a server which can handle 2000 users per second. How can > I optimize the server response. i am using Apache 2.2.15. > > Regards > Nasir >

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread Nilesh Govindarajan
On Thu, May 27, 2010 at 12:25 PM, J. Bakshi wrote: > On 05/27/2010 12:16 PM, J. Bakshi wrote: >> Hello list, >> >> I am trying to achieve a very particular .htaccess redirect arrangement. >> I have made it worked but halfway :-( >> >> I have written a redirect rule as >> >> ` >> Re

Re: [us...@httpd] httpd to get process list

2010-05-27 Thread Nilesh Govindarajan
On Thu, May 27, 2010 at 12:42 PM, James Corteciano wrote: > Hi All, > I have a nagios server to monitor the remote apache server and automatically > restarting the service if it is detected unreachable. Now, in times of > apache down, I just want to get the processes list or any means that could >

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread J. Bakshi
On 05/27/2010 01:14 PM, Nilesh Govindarajan wrote: > On Thu, May 27, 2010 at 12:25 PM, J. Bakshi wrote: > >> On 05/27/2010 12:16 PM, J. Bakshi wrote: >> >>> Hello list, >>> >>> I am trying to achieve a very particular .htaccess redirect arrangement. >>> I have made it worked but halfway :-

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread Nilesh Govindarajan
On Thu, May 27, 2010 at 1:45 PM, J. Bakshi wrote: > On 05/27/2010 01:14 PM, Nilesh Govindarajan wrote: >> On Thu, May 27, 2010 at 12:25 PM, J. Bakshi wrote: >> >>> On 05/27/2010 12:16 PM, J. Bakshi wrote: >>> Hello list, I am trying to achieve a very particular .htaccess redirect a

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread J. Bakshi
On 05/27/2010 01:59 PM, Nilesh Govindarajan wrote: > I assume that you want to redirect abcd.mydomain.com to > www.mydomain.com/?domain=abcd.mydomain.com > Considering that scenario and limiting subdomains only to > mydomain.com, the following rule works (I've tested them on my > server): > > Rewri

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread Tom Evans
On Thu, May 27, 2010 at 9:50 AM, J. Bakshi wrote: > On 05/27/2010 01:59 PM, Nilesh Govindarajan wrote: >> I assume that you want to redirect abcd.mydomain.com to >> www.mydomain.com/?domain=abcd.mydomain.com >> Considering that scenario and limiting subdomains only to >> mydomain.com, the followin

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread J. Bakshi
On 05/27/2010 02:33 PM, Tom Evans wrote: > On Thu, May 27, 2010 at 9:50 AM, J. Bakshi wrote: > >> On 05/27/2010 01:59 PM, Nilesh Govindarajan wrote: >> >>> I assume that you want to redirect abcd.mydomain.com to >>> www.mydomain.com/?domain=abcd.mydomain.com >>> Considering that scenario a

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread Tom Evans
On Thu, May 27, 2010 at 10:23 AM, J. Bakshi wrote: > > Yes, I post here frequently and I get some really nice solution from > this list.  IS it an offense ? > > You don't ever look to see what your solution could be, by using the resources provided - eg the excellent manual. You simply ask your o

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread J. Bakshi
On 05/27/2010 02:59 PM, Tom Evans wrote: > On Thu, May 27, 2010 at 10:23 AM, J. Bakshi wrote: > >> Yes, I post here frequently and I get some really nice solution from >> this list. IS it an offense ? >> >> >> > You don't ever look to see what your solution could be, by using the > resour

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread Tom Evans
On Thu, May 27, 2010 at 10:42 AM, J. Bakshi wrote: > On 05/27/2010 02:59 PM, Tom Evans wrote: >> On Thu, May 27, 2010 at 10:23 AM, J. Bakshi wrote: >> >>> Yes, I post here frequently and I get some really nice solution from >>> this list.  IS it an offense ? >>> >>> >>> >> You don't ever look to

Re: [us...@httpd] Stealthing a vhost

2010-05-27 Thread Peter Horn
J Greenlees wrote: >personally, I would consider a permanent redirect to 127.0.0.1 for all but your one excepted case on access of the default virtual host. >their bots will screw their own server that way. ;) Sorry to bring you the bad news, Jaqui, but bots don't respect redirection. I suspe

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread Nilesh Govindarajan
On Thu, May 27, 2010 at 3:18 PM, Tom Evans wrote: > On Thu, May 27, 2010 at 10:42 AM, J. Bakshi wrote: >> On 05/27/2010 02:59 PM, Tom Evans wrote: >>> On Thu, May 27, 2010 at 10:23 AM, J. Bakshi wrote: >>> Yes, I post here frequently and I get some really nice solution from this list.

Re: [us...@httpd] .htaccess redirect issue

2010-05-27 Thread J. Bakshi
On 05/27/2010 05:22 PM, Nilesh Govindarajan wrote: > Guys stop fighting. The problem has been solved. That's all. (.) > > I have already kept myself silence Nilesh. Thanks for your kind clues and also thanks to Tom as he has pointed out some really good links for me. Wish you all a nice time.

Re: [us...@httpd] Stealthing a vhost

2010-05-27 Thread Jorge Schrauwen
The sane sultion would be to setup a default host (first vhost == default) and just deny all access to it. You'll still get hit but all requests without a hostname get denied. ~Jorge On Thu, May 27, 2010 at 1:10 PM, Peter Horn wrote: > J Greenlees wrote: > > >personally, I would consider a pe

Re: [us...@httpd] mod_rewrite problem IP address coming in URL instead of domain name.

2010-05-27 Thread Krist van Besien
Hello, I'm not entirely sure what your problem is. There is not a single question in your mail. What is your problem? What are you trying to achieve? What are you getting in stead? Krist -- krist.vanbes...@gmail.com kr...@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the nor

Re: [us...@httpd] mod_rewrite problem IP address coming in URL instead of domain name.

2010-05-27 Thread Eric Covener
On Thu, May 27, 2010 at 8:36 AM, Krist van Besien wrote: > Hello, > > I'm not entirely sure what your problem is. There is not a single > question in your mail. > > What is your problem? What are you trying to achieve? What are you > getting in stead? +1 -- I punched out before reading the entire

Re: [us...@httpd] mod_rewrite problem IP address coming in URL instead of domain name.

2010-05-27 Thread Tom Evans
On Thu, May 27, 2010 at 2:20 PM, Eric Covener wrote: > On Thu, May 27, 2010 at 8:36 AM, Krist van Besien > wrote: >> Hello, >> >> I'm not entirely sure what your problem is. There is not a single >> question in your mail. >> >> What is your problem? What are you trying to achieve? What are you >>

Re: [us...@httpd] graceful restart occasionally gives "could not bind" error

2010-05-27 Thread Raphael Bauduin
On Thu, May 27, 2010 at 5:36 AM, Igor Cicimov wrote: > Loading the dav module twice in your config? I can confirm the problem is not caused by the webdav module. I have disabled it (it wasn't used) and just got the same problem. Here's the log: [Thu May 27 15:30:30 2010] [notice] Graceful restar

Re: [us...@httpd] graceful restart occasionally gives "could not bind" error

2010-05-27 Thread Jeff Trawick
On Wed, May 26, 2010 at 9:22 AM, Raphael Bauduin wrote: > Hi, > > With an apache 2.2 running on FreeBSD which level of Apache? (2.2.9 had a change in this area of processing) which level of FreeBSD? >, I occasionally get a > problem > with a g

Re: [us...@httpd] graceful restart occasionally gives "could not bind" error

2010-05-27 Thread Scott Gifford
I don't have an answer for you, but here are a few troubleshooting tips I have found helpful. If you can make it happen pretty often, you could try doing an strace/truss/ktrace (I think it's ktrace on BSD) of the process to see what system calls it's making and exactly which is failing. You could

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Jeff Trawick
On Wed, May 26, 2010 at 9:24 AM, Chen Chien-Yu wrote: > Hi, > > I encountered a problem after upgrading Apache to 2.2.15. > The client will be stuck and load infinitely via the HTTP protocol, but it > worked correctly in 2.0.55 before I upgraded. what OS? you probably need to get a syscall trace

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi Jeff, Thanks for your reply. My OS is Linux with kernel 2.6.x. Actually, as your suggest, I've been tracing the Apache source code for a couple of days. I'm new to the Apache, seems that something wrong between GNU CGI and mod_cgi, not sure. But I might give up the upgrading due to the limited

[us...@httpd] install certificate on httpd

2010-05-27 Thread gping
I am using Fedora 10 httpd. By default, I can http:// and https:// to the host. Now I want to 1. disable http:// ie disable port 80 and keep https:// or port 443 only. I am still using the default DocumentRoot /var/www/html/. I am confused if I should use Listen 443 or Listen x.x.x.x:443 or S

[us...@httpd] Re: HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi, I'm not familiar with the bucket, brigade at all. It seems that the chunk will be sent via bucket brigade. I found the stuck happen when the length of the bucket is "0" and the next length of the bucket is "5" (0\r\n\r\n, is this the last chunk?). Why isn't the last chunk inserted in the buck

Re: [us...@httpd] install certificate on httpd

2010-05-27 Thread Nilesh Govindarajan
On Fri, May 28, 2010 at 8:29 AM, gping wrote: > > I am using Fedora 10 httpd. By default, I can http:// and https:// to the > host. > Now I want to > > 1. disable http://  ie disable port 80 and keep https:// or port 443 only. > I am still using the default DocumentRoot  /var/www/html/. > I am con

Re: [us...@httpd] Re: HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread William A. Rowe Jr.
On 5/27/2010 10:44 PM, Chen Chien-Yu wrote: > Hi, > > I'm not familiar with the bucket, brigade at all. > It seems that the chunk will be sent via bucket brigade. > I found the stuck happen when the length of the bucket is "0" and the > next length of the bucket is "5" (0\r\n\r\n, is this the last

Re: [us...@httpd] install certificate on httpd

2010-05-27 Thread gping
Thanks for your quick reply. I was focusing on httpd.conf. And now i try to modify ssl.conf. Q: how to make the web site https:// only? If I simply hash out Listen 80, it still responses. -- View this message in context: http://old.nabble.com/install-certificate-on-httpd-tp28702259p28702534.

Re: [us...@httpd] Re: HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi William, Refer to your words, so it's a bug in the bucket brigade mechanism? Should I report it to the Apache bug system? The two buckets are processed in the ap_core_output_filter(), and in the case of EOS bucket (APR_BUCKET_IS_EOS is true) That's why, the specific two buckets aren't sent out

Re: [us...@httpd] install certificate on httpd

2010-05-27 Thread Nilesh Govindarajan
On Fri, May 28, 2010 at 9:33 AM, gping wrote: > > Thanks for your quick reply. > I was focusing on httpd.conf. And now i try to modify ssl.conf. > Q: how to make the web site https:// only? > If I simply hash out Listen 80, it still responses. > > > -- > View this message in context: > http://old

Re: [us...@httpd] install certificate on httpd

2010-05-27 Thread Nilesh Govindarajan
On Fri, May 28, 2010 at 9:40 AM, Nilesh Govindarajan wrote: > On Fri, May 28, 2010 at 9:33 AM, gping wrote: >> >> Thanks for your quick reply. >> I was focusing on httpd.conf. And now i try to modify ssl.conf. >> Q: how to make the web site https:// only? >> If I simply hash out Listen 80, it sti

Re: [us...@httpd] Re: HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread William A. Rowe Jr.
On 5/27/2010 11:04 PM, Chen Chien-Yu wrote: > Hi William, > > Refer to your words, so it's a bug in the bucket brigade mechanism? > Should I report it to the Apache bug system? > The two buckets are processed in the ap_core_output_filter(), and in the > case of EOS bucket (APR_BUCKET_IS_EOS is tru

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread William A. Rowe Jr.
On 5/26/2010 8:24 AM, Chen Chien-Yu wrote: > > It seems that some packets are queued in the Apache, ..?! > I describe the process as below, > 1. Client send http request to the server, http://myhost/web.cgi, the > cgi is implemented in GNU CGI which has been dead since 2002. If the CGI closes th

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi William, I reckon it should be mod_cgi, the CGI library I use is called "GNU CGI Library in C, v0.9.5" which has been maintained for many years. The function below is the way the CGI init and open the stream. gcgiReturnType initCgi( ) { */* Dup stdout to gcgiOut */* *gcgifd = dup(file

Re: [us...@httpd] Re: HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi William, I've ever mentioned if I comment out the "Listen 443" and leave only the "Listen 80", the client can get the page without problem via HTTP. (In this successful case, I also see the two 0 and 5 length bucket, don't know why they are sent out even reach the EOS) The problem only exists

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi, These are the modules in my Apache r...@~# /usr/local/apache/bin/httpd -l | more Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_default.c mod_auth_basic.c mod_include.c mod_filter.c mod_l

Re: [us...@httpd] Stealthing a vhost

2010-05-27 Thread Peter Horn
Jorge wrote: >The sane sultion would be to setup a default host (first vhost == default) and just deny all access to it. >You'll still get hit but all requests without a hostname get denied. Jorge, You may have missed my original post a few days ago (95182). I know many ways to deny access; w

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Nick Kew
On 28 May 2010, at 06:23, Chen Chien-Yu wrote: > Hi William, > > I reckon it should be mod_cgi, the CGI library I use is called "GNU CGI > Library in C, v0.9.5" which has been maintained for many years. > > The function below is the way the CGI init and open the stream. > > gcgiReturnType >

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi Nick, I have no idea why duplicate the stdout, and seems that no one deals with the stream closing in the library. Please have a look at the main source code, http://www.sfr-fresh.com/unix/www/gcgi-0.9.5.tar.gz:a/libgcgi.a-0.9.5/src/gcgi.c I guess this is the official website of this library,