RE: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread Ryan Murray
Did you check the timeout on your apache proxy config? Once apache has detected the backend is not available it won't retry again until a certain number of seconds (timeout) has passed. I pretty sure mod_proxy defaults to 60 seconds, which I usually reduce to get a quicker recovery when Tomcat

[us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Andre Hübner
Hello, i did some Tests with apache22 and mod_deflate in standardsettings. With deflate enabled i called a simple phpinfo.php to watch what happens. When phpinfo.php was processed by mod_php the content was deliverd gziped but wenn php running with fastcgi it was not. Ist this a generall differe

[us...@httpd] Unwanted URL ending with mod_rewrite

2009-06-10 Thread kestutis98
I'm using mod_rewrite method for clean URLs. --- Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_URI} !\. RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f Re

Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread André Warnier
Ryan Murray wrote: Did you check the timeout on your apache proxy config? Once apache has detected the backend is not available it won't retry again until a certain number of seconds (timeout) has passed. I pretty sure mod_proxy defaults to 60 seconds, which I usually reduce to get a quicker rec

Re: [us...@httpd] default site

2009-06-10 Thread Matus UHLAR - fantomas
> > On 09.06.09 09:14, Davide Bianchi wrote: > >> Actually no. If the request doesn't match any Virtual Hosts, it will be > >> served by the first vhost defined or by the one defined with the > >> _default_ keyword. > On Tue, Jun 9, 2009 at 4:11 AM, Matus UHLAR - fantomas > wrote: > > No. The "fi

Re: [us...@httpd] Reverse Proxy: Max-Forwards has reached zero - proxy loop?

2009-06-10 Thread Tom Evans
On Tue, 2009-06-09 at 22:37 +0200, ml ml wrote: > Hi Nick, > > it still does not work if i use: > > > > ServerName webmail.example.com > SSLEngine on > SSLCertificateFile /usr/local/apache/conf/webmail.example.cert > SSLCertificateKeyFile /usr/local/apache/conf/webmail.example.key > > SSL

[us...@httpd] help with mod_authnz_ldap and require ldap-group

2009-06-10 Thread Paul Miles
Hello, Please forgive me if this is the wrong place to post questions about mod_authnz_ldap, but I've been struggling with this particularly issue for a few days now ... I have a (working) openldap server which contains a number of user accounts. see extract below : dn: uid=pmiles,ou=people,d

[us...@httpd] Rewrite Rule for hiding Destination URL ??

2009-06-10 Thread BipinDas-Gmail
Hello All, I need to rewrite the url http://123.dev.com to http://123.dev.com/profile I have put the below code to my .htaccesss that successfully worked # --- rewritecond %{http_host} ^widgets\.cmdn\.com$ rewritecond %{request_uri} ^/

Re: [us...@httpd] Rewrite Rule for hiding Destination URL ??

2009-06-10 Thread André Warnier
BipinDas-Gmail wrote: Hello All, I need to rewrite the url http://123.dev.com to http://123.dev.com/profile 1) Since you are rewriting everything that is "/*" to "/profile/*" anyway, then why don't you move everything that is now under /profile, to / , and be done with all the rewriting

[us...@httpd] Error 403 with POST but not GET

2009-06-10 Thread Jonathan Gazeley
Hi, I have some perl CGI scripts in my cgi-bin. The setup was working perfectly on my old server. I've now moved the scripts to a replacement server. The new server responds when I send a GET request to the script, but throws an error 403 Forbidden if I send a POST request to the script. N

Re: [us...@httpd] Error 403 with POST but not GET

2009-06-10 Thread André Warnier
Jonathan Gazeley wrote: x.x.x.x - jg4461 [09/Jun/2009:07:18:32 +0100] "GET /cgi-bin/registerMAC.pl?ticket=ST-39049938-KDf1eIxd5gH0dodU8KzX HTTP/1.1" 200 4792 x.x.x.x - - [09/Jun/2009:07:19:40 +0100] "POST /cgi-bin/registerMAC.pl HTTP/1.1" 403 313 Just from the name and arguments of the scri

[us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Singh, Sukhjeet
I need to fix this Vulnerability, So can someone please check the vulnerability and let me know the best way to fix the HTTP Service / Server Version. The server allows capture of the HTTP service banner. Service banners can contain sensitive information, such as application and Operating Syst

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 7:53 AM, Singh, Sukhjeet wrote: > The server allows capture of the HTTP service banner. Service banners can > contain sensitive information, such as application and Operating System (OS) > version numbers. An attacker can use the version information from your Web > server t

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 3:12 AM, Andre Hübner wrote: > Hello, > > i did some Tests with apache22 and mod_deflate in standardsettings. > With deflate enabled i called a simple phpinfo.php to watch what happens. > When phpinfo.php was processed by mod_php the content was deliverd gziped > but wenn p

Re: [us...@httpd] Rewrite Rule for hiding Destination URL ??

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 5:52 AM, BipinDas-Gmail wrote: > I need to rewrite the url http://123.dev.com to http://123.dev.com/profile > > I have put the below code to my .htaccesss  that successfully worked > > # --- > > rewritecond %{http_host

RE: [us...@httpd] Rewrite Rule for hiding Destination URL ??

2009-06-10 Thread Singh, Sukhjeet
Eric, I think you are right cuz the rewrite rule which I'm using and also the ErrorDocument which I'm using are using the path of the files and not the exact URL. But while I'm able to fix the custom 403 and 404 pages, I'm not too sure why the scanner is still detecting this vulnerability. Su

Re: [us...@httpd] default site

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 4:07 AM, Matus UHLAR - fantomas wrote: >> NameVirtualHost doesn't affect this selection, so the logic degrades >> to simpler  _default_ and * are used when there isn't an exact match >> on the IP. > > I've meant, if there's NameVirtualHost , the > will not match the IP eve

Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 4:06 AM, André Warnier wrote: > I have not verified, but intuitively I would tend to think that no HTTP > caching mechanism (browser, server, mod_cache, proxies, etc..) would ever > really "cache" error responses, and keep responding the same from some cache > memory. > ht

Re: [us...@httpd] Rewrite Rule for hiding Destination URL ??

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 8:06 AM, Singh, Sukhjeet wrote: > Eric, > > I think you are right cuz the rewrite rule which I'm using and also the > ErrorDocument which I'm using are using the path of the files and not the > exact URL. > > But while I'm able to fix the custom 403 and 404 pages, I'm not

RE: [us...@httpd] default site

2009-06-10 Thread Singh, Sukhjeet
Eric, Basically the thing is my security guy is saying that If I can any how able to fix the 404 error in lieu of the 403 Forbidden error then it'll fix the vulnerability. I mean instead of HTTP/1.1 403 I should get HTTP/1.1 404 while anyone try even from telnet or with any scanner. Sukhjeet

RE: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread Singh, Sukhjeet
Eric, I agree with you but as we can fix the custom 404 or 403 errors via ErrorDocument. Isn't there any way to fix this banner as whenever the 403 Forbidden message is generated it should be replaced with 404 message. I tried even blocking the mod_ProxyVia but it also didn't helped. Sukhjeet

[us...@httpd] Re: mod_disk_cache - Temporary files when 32000 subdirs limit is reached

2009-06-10 Thread Dan Poirier
Nuno Fernandes writes: > When the 32000 sub dirs limit is reached, i get the following errors in > error_log: > > [Tue Jun 09 22:19:23 2009] [error] (2)No such file or directory: disk_cache: > rename tempfile to hdrsfile failed: /var/cache/httpd/mod_proxy/aptmpfddU8r -> > /var/cache/httpd/mod_

[us...@httpd] Re: Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Dan Poirier
Eric Covener writes: > On Wed, Jun 10, 2009 at 7:53 AM, Singh, Sukhjeet > wrote: >> The server allows capture of the HTTP service banner. Service banners can >> contain sensitive information, such as application and Operating System (OS) >> version numbers. An attacker can use the version inform

Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 8:13 AM, Singh, Sukhjeet wrote: > Eric, > > I agree with you but as we can fix the custom 404 or 403 errors via > ErrorDocument. Isn't there any way to fix this banner as whenever the 403 > Forbidden message is generated it should be replaced with 404 message. > You're s

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread André Warnier
RE: [us...@httpd] default site RE: [us...@httpd] 503 status seems to get cached - how do I disable caching? Singh, Sukhjeet wrote: (lots of stuff in the wrong threads) 1) would you please stop just hitting the "reply" button on just any message of this list to post things that have nothin

RE: [us...@httpd] Re: Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Singh, Sukhjeet
Eric, Can you let me know the best possible way to hide this banner. Sukhjeet -Original Message- From: Dan Poirier [mailto:poir...@pobox.com] Sent: Wednesday, June 10, 2009 6:05 PM To: users@httpd.apache.org Subject: [us...@httpd] Re: Fixing HTTP Service / Server Version Detected Eric

RE: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Singh, Sukhjeet
Andre, I appreciate your concern but I'll like to let you know that enabling or disabling the HTTP banner should logically come under the server configuration. I'm not too sure whether you treat it that ways or not..? Sukhjeet -Original Message- From: André Warnier [mailto:a...@ice-sa.

Re: [us...@httpd] Error 403 with POST but not GET

2009-06-10 Thread Jonathan Gazeley
Hi Andre, Thanks for your reply registerMAC.pl accepts username, MAC address and device type as arguments so users can register their devices in our database. The database is later relied on for authentication with FreeRADIUS, but this perl script does not do authorization or authentication.

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread André Warnier
Sukhjeet, let me try one more time. - this is a users help forum dedicated to Apache httpd - considering the content of the server message you showed (see below), I am not sure that what you call "the server", is an Apache httpd server - if I am wrong, and it /is/ an Apache httpd server, then y

RE: [us...@httpd] Re: Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Boyle Owen
> -Original Message- > From: Singh, Sukhjeet [mailto:sukhjeet.si...@fiserv.com] > Sent: Wednesday, June 10, 2009 2:56 PM > To: users@httpd.apache.org > Subject: RE: [us...@httpd] Re: Fixing HTTP Service / Server > Version Detected > > Eric, > > Can you let me know the best possible way

RE: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Singh, Sukhjeet
Andre, It is an apache server and let me concrete my request. I like to disable the HTTP 1.1 server /service banner. Which include 404 errors and 403 errors. Sukhjeet -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, June 10, 2009 6:37 PM To: users@httpd

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Dave Floyd
I need to fix this Vulnerability, So can someone please check the vulnerability and let me know the best way to fix the HTTP Service / Server Version. The server allows capture of the HTTP service banner. Service banners can contain sensitive information, such as application and Operating Sys

RE: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Singh, Sukhjeet
Thanks for your help Dave...!! Sukhjeet -Original Message- From: Dave Floyd [mailto:dave.fl...@pa.press.net] Sent: Wednesday, June 10, 2009 6:58 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] Fixing HTTP Service / Server Version Detected >I need to fix this Vulnerability, So c

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Andre Hübner
On Wed, Jun 10, 2009 at 3:12 AM, Andre Hübner wrote: Hello, i did some Tests with apache22 and mod_deflate in standardsettings. With deflate enabled i called a simple phpinfo.php to watch what happens. When phpinfo.php was processed by mod_php the content was deliverd gziped but wenn php runnin

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread André Warnier
Dave Floyd wrote: I need to fix this Vulnerability, So can someone please check the vulnerability and let me know the best way to fix the HTTP Service / Server Version. The server allows capture of the HTTP service banner. Service banners can contain sensitive information, such as application

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 10:08 AM, Andre Hübner wrote: > On Wed, Jun 10, 2009 at 3:12 AM, Andre Hübner wrote: >>> >>> Hello, >>> >>> i did some Tests with apache22 and mod_deflate in standardsettings. >>> With deflate enabled i called a simple phpinfo.php to watch what happens. >>> When phpinfo.php

RE: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Boyle Owen
> -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > > > and, when you have exhausted all of those, and the JBoss list > too, you > might finally be able to bask in the satisfaction of knowing which > webserver software you are really responsible for. I suspect we've

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Andre Hübner
Tough to guess. Relevant Config, logs, and the request/response are a good start. oh, it works now. if called php-script ist parsed by php-cgi it is not enough to write AddOutputFilterByType in .htaccess if i activated AddOutputFilterByType directly in httpd.conf it works. with mod_php t

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread Nick Kew
On Wed, 10 Jun 2009 18:28:39 +0530 "Singh, Sukhjeet" wrote: > Andre, > > I appreciate your concern but I'll like to let you know that enabling > or disabling the HTTP banner should logically come under the server > configuration. Your vulnerability isn't the banner, it's the sysop. Find one wh

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Tom Evans
On Wed, 2009-06-10 at 16:41 +0200, Andre Hübner wrote: > > > Tough to guess. Relevant Config, logs, and the request/response are a > > good start. > > > oh, it works now. if called php-script ist parsed by php-cgi it is not > enough to write AddOutputFilterByType in .htaccess > if i activated

[us...@httpd] HTTP server scalability

2009-06-10 Thread Vinay Nagrik
Dear Group, How do web servers achieve scalability is bothering me for a long time. My understanding is that an application can open one and only one socket connection through four system calls (socket, bind, listen, and accept). It is at 'listen' level that a server can specify for how many con

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Andre Hübner
I don't know why that would make a difference, but if you have access to the main httpd.conf file, you should never use .htaccess. It is less efficient than putting it in the main httpd.conf, has various 'gotchas' and slight differences in syntax that are easy to catch you out. yes, but there ar

Re: [us...@httpd] HTTP server scalability

2009-06-10 Thread Tom Evans
On Wed, 2009-06-10 at 09:10 -0700, Vinay Nagrik wrote: > Dear Group, > > How do web servers achieve scalability is bothering me for a long > time. My understanding is that an application can open one and only > one socket connection through four system calls (socket, bind, listen, > and accept).

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread André Warnier
Boyle Owen wrote: I suspect we've had a visitation from a Help Vampire... http://slash7.com/pages/vampires That's a great one ! :-) Did you know this one ? http://www.mail-archive.com/us...@tomcat.apache.org/msg53854.html ---

Re: [us...@httpd] mod_deflate mod_php/php-cgi

2009-06-10 Thread Eric Covener
On Wed, Jun 10, 2009 at 11:33 AM, Tom Evans wrote: > On Wed, 2009-06-10 at 16:41 +0200, Andre Hübner wrote: >> >> > Tough to guess.  Relevant Config, logs, and the request/response are a >> > good start. >> >> >> oh, it works now. if called php-script ist parsed by php-cgi it is not >> enough  to w

Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread Jenny Brown
On Wed, Jun 10, 2009 at 3:06 AM, André Warnier wrote: > So, to get back to the original issue : if indeed the observed behaviour > derives from such a timeout on the part of mod_proxy, I would suggest to do > some thinking about whether it is not better, in a general sense, to leave > things as the

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread William A. Rowe, Jr.
Singh, Sukhjeet wrote: > > The server allows capture of the HTTP service banner. Service banners > can contain sensitive information, such as application and Operating > System (OS) version numbers. An attacker can use the version information > from your Web server to determine if there are any kn

Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread André Warnier
Jenny Brown wrote: On Wed, Jun 10, 2009 at 3:06 AM, André Warnier wrote: So, to get back to the original issue : if indeed the observed behaviour derives from such a timeout on the part of mod_proxy, I would suggest to do some thinking about whether it is not better, in a general sense, to leave

Re: [us...@httpd] Fixing HTTP Service / Server Version Detected

2009-06-10 Thread André Warnier
William A. Rowe, Jr. wrote: http://httpd.apache.org/docs/2.2/mod/core.html#servertokens Sadly, this information is useless to you. This is not an httpd issue, it's a JBoss issue. Take it to their user forum. This is not a JBoss support forum. What I've been trying to tell the OP since mmm

Re: [us...@httpd] HTTP server scalability

2009-06-10 Thread André Warnier
Complementary to what you will find in the on-line Apache documentation at http://httpd.apache.org, and painted with a very wide brush : When you start Apache, a single main Apache process is started. It reads and checks the configuration, and loads a series of core and add-on modules, as per y

Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?

2009-06-10 Thread Jenny Brown
You got me going in a good general direction -- the real solution is slightly different. Here's what I found. In the parameters section of the ProxyPass directive, there is a parameter called retry. It defaults to 60 seconds. The description is such: "Connection pool worker retry timeout in sec

[us...@httpd] Stable Release of Apache

2009-06-10 Thread Mohit Anchlia
We are using Apache 2.2. How can I find which one is most recent stable version? I am trying to determine if we need to upgrade Apache. I am also waiting for this bug to get fixed in that version https://issues.apache.org/bugzilla/show_bug.cgi?id=42829 ---

Re: [us...@httpd] Stable Release of Apache

2009-06-10 Thread William A. Rowe, Jr.
Mohit Anchlia wrote: > We are using Apache 2.2. How can I find which one is most recent > stable version? I am trying to determine if we need to upgrade Apache. Have you visited http://httpd.apache.org recently? - The official Us