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

2010-07-25 Thread Simone Caruso
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 VirtualHost _default_:443/VirtualHost tags, but none of that worked. -Bennett (main conf): ErrorDocument

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

2010-07-25 Thread Joost de Heer
On 07/25/2010 08:02 PM, Teun wrote: Hi, I have problems with htaccess and server side inludes. If I try a secure websitefolder with a .htaccess file and a .htpasswd file. There will not ask for a user/passwd to loging in. Do you have the proper AllowOverride set? Joost

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 Directory / and /Directory and in between the lines saying Directory /var/www/html and /Directory in both places you probably have the line AllowOverride None. As long as this is in

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

2010-07-25 Thread Daniel Reinhardt
-Original Message- From: Bennett Haselton Sent: 24 July, 2010 0:10 To: users@httpd.apache.org Subject: [us...@httpd] trying to ban IPs using htaccess - not working I'm trying to ban certain IPs from visiting my site, so that they instead see a message saying Your IP has been banned,

[us...@httpd] [ANNOUNCEMENT] Apache HTTP Server 2.2.16 Released

2010-07-25 Thread Paul Querna
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Apache HTTP Server (httpd) 2.2.16 Released The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release and immediate availability of version 2.2.16 of the Apache HTTP Server (httpd). This

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 VirtualHost _default_:443/VirtualHost tags, but none of that

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

2010-07-25 Thread Bennett Haselton
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 people submit bids for telling me the answer), and someone told me the answer for $20. The answer, it turns out, is the

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

2010-07-25 Thread Eric Covener
On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton benn...@peacefire.org 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 people submit bids for telling me the answer), and

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 benn...@peacefire.org 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] 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 banned

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

2010-07-25 Thread Eric Covener
On Sun, Jul 25, 2010 at 8:23 PM, Bennett Haselton benn...@peacefire.org wrote: At 05:08 PM 7/25/2010, Eric Covener wrote: On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton benn...@peacefire.org wrote: By the way, I posted this question on vworker.com (where you can post work items for

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

2010-07-25 Thread Eric Covener
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 request. So apparently Apache is *applying* the

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 benn...@peacefire.org wrote: At 05:08 PM 7/25/2010, Eric Covener wrote: On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton benn...@peacefire.org wrote: By the way, I posted this question on

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: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Eric Covener
2) in any case, if that is the cause, what would be the solution? You put a Files section inside of a Directory section and allow all IP addresses to access it (order deny,allow ; allow from all) -- Eric Covener cove...@gmail.com

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

2010-07-25 Thread Tapas Mishra
Try this http://www.maxmind.com/app/mod_geoip http://www.munkyonline.com/articles/htaccess-301-redirects-for-ip-ranges.html

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

2010-07-25 Thread Nilesh Govindarajan
On Sat, Jul 24, 2010 at 5:40 AM, Bennett Haselton benn...@peacefire.org 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've *almost* got it working -- when people visit URLs

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: *** Files banned_ip.php allow from all /Files 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

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: *** Files banned_ip.php allow from all /Files 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

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 benn...@peacefire.org 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've *almost*