Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
At 10:32 PM 7/25/2010, you wrote: On Sat, Jul 24, 2010 at 5:40 AM, Bennett Haselton wrote: > I'm trying to ban certain IPs from visiting my site, so that they instead > see a message saying "Your IP has been banned, email me if you think this is > an error." Â I&#x

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
Thanks, I had actually just realized that might work :) Yes, putting this into .htaccess does the trick: *** allow from all ErrorDocument 403 /banned_ip.php order deny,allow deny from 71.112.32.149 *** Now the real question is why, for http requests, it allowed me to view the banned_ip.php e

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
Thanks, I had actually just realized that might work :) Yes, putting this into .htaccess does the trick: *** allow from all ErrorDocument 403 /banned_ip.php order deny,allow deny from 71.112.32.149 *** Now the real question is why, for http requests, it allowed me to view the banned_ip.php e

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
At 05:30 PM 7/25/2010, Eric Covener wrote: > A little more potentially useful information: > The 403 forbidden message that comes up when I try to access an https:// URL > also says: > "Additionally, a 403 Forbidden error was encountered while trying to use an > ErrorDocument to handle the re

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
At 05:29 PM 7/25/2010, Eric Covener wrote: On Sun, Jul 25, 2010 at 8:23 PM, Bennett Haselton wrote: > At 05:08 PM 7/25/2010, Eric Covener wrote: >> >> On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton >> wrote: >> > By the way, I posted this question on vw

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
At 07:38 PM 7/24/2010, Bennett Haselton wrote: In my httpd.conf file I added the directive (at the bottom of the file, so at the top level): ErrorDocument 403 /banned_ip.php That works when I go to a file that I've set chmod to 000: http://209.160.28.154/forbidden.txt (of course the &q

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
At 05:08 PM 7/25/2010, Eric Covener wrote: On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton wrote: > By the way, I posted this question on vworker.com (where you can post "work > items" for contractors to bid on, although I more often use it to post > questions and then

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
x27;t know how to make the ErrorDocument directive apply to the https site. -Bennett At 05:10 PM 7/23/2010, Bennett Haselton wrote: I'm trying to ban certain IPs from visiting my site, so that they instead see a message saying "Your IP has been banned, email me if you think

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
At 03:31 AM 7/25/2010, Simone Caruso wrote: How do I make the ErrorDocument directive apply to my SSL site as well? I've tried inserting "ErrorDocument 403 /banned_ip.php" into ssl.conf at the top level, and into ssl.conf inside the tags, but none of that worked. -Bennett (main conf): Error

Re: [us...@httpd] problems with htacces and includes

2010-07-25 Thread Bennett Haselton
My understanding is that the cause is probably that in your httpd.conf file, in between the lines saying and and in between the lines saying and in both places you probably have the line "AllowOverride None". As long as this is in effect, directories below /var/www/html cannot have an .h

[us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-24 Thread Bennett Haselton
In my httpd.conf file I added the directive (at the bottom of the file, so at the top level): ErrorDocument 403 /banned_ip.php That works when I go to a file that I've set chmod to 000: http://209.160.28.154/forbidden.txt (of course the "banned IP" message doesn't make any sense in that conte

[us...@httpd] trying to ban IPs using htaccess - not working

2010-07-23 Thread Bennett Haselton
I'm trying to ban certain IPs from visiting my site, so that they instead see a message saying "Your IP has been banned, email me if you think this is an error." I've *almost* got it working -- when people visit URLs like http://209.160.28.154/index.html or http://209.160.28.154/foo-does-not-e

Re: [us...@httpd] where is 'apr-1-config'?

2010-07-17 Thread Bennett Haselton
At 01:08 PM 7/17/2010, Eric Covener wrote: On Sat, Jul 17, 2010 at 2:45 PM, Bennett Haselton wrote: > Has anyone here ever used apr-1-config? I'm still completely blocked on > this step and there's nothing in the apache.org documentation about how to > get apr-1-config i

Re: [us...@httpd] where is 'apr-1-config'?

2010-07-17 Thread Bennett Haselton
Has anyone here ever used apr-1-config? I'm still completely blocked on this step and there's nothing in the apache.org documentation about how to get apr-1-config if you don't have it. Can anyone point me somewhere? -Bennett At 05:07 PM 7/16/2010, Bennett Haselton w

[us...@httpd] default values changed in httpd.conf from 2.2.15 to 2.2.3?

2010-07-16 Thread Bennett Haselton
I'm working my way through some instructions on how to build my own copy of Apache and then copy it over in place of my existing Apache. My existing Apache is version 2.2.15, and the new one that I built from source, is version 2.2.3. The httpd.conf file from the old Apache has some lines in

[us...@httpd] where is 'apr-1-config'?

2010-07-16 Thread Bennett Haselton
I emailed the author of the modlogslow module asking for help installing it on CentOS 5.5, and he sent me back instructions that included this step: >>> 2. compile # first, get link switch(es) for linking to APR by apr-1-config $ /___path-to-apache-bin___/apr-1-config --link-ld ex. /home/apac

Re: [us...@httpd] '403 forbidden' when trying to serve index.html

2010-07-14 Thread Bennett Haselton
At 05:26 PM 7/14/2010, Frank Gingras wrote: That just says: [Wed Jul 14 17:17:17 2010] [error] [client 71.112.32.149] (13)Permission denied: access to /index.html denied -Bennett - The official User-To-User support forum of th

Re: [us...@httpd] '403 forbidden' when trying to serve index.html

2010-07-14 Thread Bennett Haselton
At 05:06 PM 7/14/2010, Frank Gingras wrote: On 07/14/2010 08:01 PM, Bennett Haselton wrote: A consultant is giving me instructions for compiling a second copy of Apache on my server to listen on a different port from the main Apache. The second copy resides under /root/httpd, the httpd.conf

[us...@httpd] '403 forbidden' when trying to serve index.html

2010-07-14 Thread Bennett Haselton
A consultant is giving me instructions for compiling a second copy of Apache on my server to listen on a different port from the main Apache. The second copy resides under /root/httpd, the httpd.conf file contains the line DocumentRoot "/root/httpd/htdocs" so I assume that attempting to brow

[us...@httpd] building Apache from source, on box where it was installed with yum

2010-07-11 Thread Bennett Haselton
I have a CentOS 5.5 machine where I originally installed Apache with yum, so it's located at /usr/sbin/httpd with configuration files at /etc/httpd/conf and there is no Apache source code on the machine. I've been advised that to do some of the things I'd want to do (e.g. view more than 63 cha

[us...@httpd] expanding info shows by mod_status

2010-07-06 Thread Bennett Haselton
I'm using mod_status with ExtendedStatus On to see real-time request info, but I want to expand the output in two ways: 1) I want to see the HTTP Host: header that was sent with the request, and 2) I want to see all bytes of the first line of the request, not just the first 63 characters, which

[us...@httpd] how to see/log the amount of CPU time a request takes

2010-07-06 Thread Bennett Haselton
I am trying to identify which requests coming in to my web server are taking up the most CPU time. http://httpd.apache.org/docs/2.0/mod/mod_log_config.html says that one of the things you can log in a log file is "The time taken to serve the request, in seconds", however, this counts wall cloc

Re: [EMAIL PROTECTED] how to enable CGI scripts to read /var/log/httpd/access_log ?

2008-02-11 Thread Bennett Haselton
At 04:02 PM 2/11/2008 -0700, Doug McNutt wrote: At 14:19 -0800 2/11/08, Bennett Haselton wrote: >My CGI scripts can read world-readable files when those files are under /var/www, just not when the world-readable files are located anywhere else. That could be because some intermedi

Re: [EMAIL PROTECTED] how to enable CGI scripts to read /var/log/httpd/access_log ?

2008-02-11 Thread Bennett Haselton
At 02:14 PM 2/11/2008 -0500, Joshua Slive wrote: On Feb 11, 2008 1:38 PM, Bennett Haselton <[EMAIL PROTECTED]> wrote: > I am trying to run a CGI script that can open /var/log/httpd/access_log for > reading and parse some data from it. (This is on a dedicated machine.) > >

Re: [EMAIL PROTECTED] how to enable CGI scripts to read /var/log/httpd/access_log ?

2008-02-11 Thread Bennett Haselton
At 02:14 PM 2/11/2008 -0500, Joshua Slive wrote: On Feb 11, 2008 1:38 PM, Bennett Haselton <[EMAIL PROTECTED]> wrote: > I am trying to run a CGI script that can open /var/log/httpd/access_log for > reading and parse some data from it. (This is on a dedicated machine.) > >

[EMAIL PROTECTED] how to enable CGI scripts to read /var/log/httpd/access_log ?

2008-02-11 Thread Bennett Haselton
I am trying to run a CGI script that can open /var/log/httpd/access_log for reading and parse some data from it. (This is on a dedicated machine.) The file /var/log/httpd/access_log is owned by root, but that's not the problem. I have other files owned by root that are in the /var/www/html d

[EMAIL PROTECTED] tool to see requests that consume lots of CPU over time?

2008-01-29 Thread Bennett Haselton
Is there any utility to help identify HTTP requests that are using a high percentage of CPU, consistently over a period of, say, 20 or 30 seconds? "top" shows the the httpd process that are high CPU users at any given moment, but the trouble is that in order to identify individual processes th

[EMAIL PROTECTED] tips for optimizing php Web proxy sites?

2008-01-21 Thread Bennett Haselton
I run several Web proxy sites (with random names like goofycake.com, cheesecamera.com, etc.) running PHProxy -- sites that you use to fetch the content of other sites indirectly. The response times for the sites are decent during the day when they get heavy usage, but I'm wondering if I'm missing

RE: [EMAIL PROTECTED] performance prob due to httpd's piling up

2006-05-08 Thread Bennett Haselton
se a control panel, however, then recompile Apache the same way you did before but add "--with-mpm=worker" Be sure to check out http://httpd.apache.org for documentation on how to configure the worker MPM. --Graham -Original Message- From: Bennett Haselton [mailto:[EMAIL PROTE

Re: [EMAIL PROTECTED] performance prob due to httpd's piling up

2006-05-07 Thread Bennett Haselton
client didn't exit properly. You might want to check out using the WORKER mpm. It might handle Apache in a way better to your liking. --Graham -Original Message- From: Bennett Haselton <[EMAIL PROTECTED]> Subj: Re: [EMAIL PROTECTED] performance prob due to httpd

Re: [EMAIL PROTECTED] performance prob due to httpd's piling up

2006-05-07 Thread Bennett Haselton
--Graham -Original Message- From: Bennett Haselton <[EMAIL PROTECTED]> Subj: [EMAIL PROTECTED] performance prob due to httpd's piling up Date: Sun May 7, 2006 11:24 pm Size: 1K To: users@httpd.apache.org I was running a stress test on a site that I run called StupidCensor

[EMAIL PROTECTED] performance prob due to httpd's piling up

2006-05-07 Thread Bennett Haselton
I was running a stress test on a site that I run called StupidCensorship.com which frequently slows to a crawl due to high traffic. From running a stress test on it using "ab" that sent 1,000 concurrent requests to the site, I found that the number of running instances of /usr/sbin/httpd would

[EMAIL PROTECTED] ab crashes on some nph scripts with double newlines

2006-05-06 Thread Bennett Haselton
ab lists "Copyright (c) 1998-2002 The Apache Software Foundation" in the output so I hope that's the right place to send bugs even if it's not part of Apache proper. And http://httpd.apache.org/bug_report.html says to send bugs to this list first before reporting them. I am using "ApacheBench