[users@httpd] How to customize error pages for only 502 and 503 and ignore other errors in Apache http server

2012-06-27 Thread Sheng Qiang Xu
I am using apache as proxy server and another application server (like tomcat) is behind apache. In apache side, I only want to customize error pages for 502 and 503 error and still show the application server's response if other errors appear. What I do now is: ProxyErrorOverride On Al

Re: [users@httpd] Confusing apache configuration

2012-06-27 Thread Robert Decker
Thanks! That was the clue I needed. The following is working for me: ServerName beta.server.com ProxyRequests Off Order deny,allow Allow from all PassengerEnabled off ProxyPassMatch ^/(?!mstar)(.*) http://beta.server.com:8890/$1 ProxyPassReverse /

Re: [users@httpd] Confusing apache configuration

2012-06-27 Thread Daniel Gruno
On 06/27/2012 03:29 PM, Robert Decker wrote: > Hello. I'm having trouble figuring out how to configure apache for the > following: > > www.server.com/mstar should go through mod_passenger > > but anything else, such as: > www.server.com/ > www.server.com/index.hmtl > etc > should go through mod_p

[users@httpd] Confusing apache configuration

2012-06-27 Thread Robert Decker
Hello. I'm having trouble figuring out how to configure apache for the following: www.server.com/mstar should go through mod_passenger but anything else, such as: www.server.com/ www.server.com/index.hmtl etc should go through mod_proxy. So, I would need something to check if it has /mstar as th

[users@httpd] Deadlock ? 30s clone() leads to very long response time

2012-06-27 Thread Sébastien Bocahu
Hello, Some of my web frontends experience weird performance issues from time to times, and after a lot of troubleshooting and researches, I have no clue on what's going on. I come to you to get hints on how to dig deeper into the issue and to get your thought on whether this may be an Apache or a

[users@httpd] Re: Reverse proxy ap_get_scoreboard_lb(0) failed + seg fault

2012-06-27 Thread Alex Bligh
--On 27 June 2012 13:39:54 +0100 Alex Bligh wrote: This should be on: apache2-mpm-prefork 2.2.14-5ubuntu8.7 apache2-mpm-prefork 2.2.14-5ubuntu8.9 This occurs after doing a 'reload' on apache, then trying to use the a site with a reverse proxy (relevant lines of config appended). Note t

[users@httpd] Reverse proxy ap_get_scoreboard_lb(0) failed + seg fault

2012-06-27 Thread Alex Bligh
I am occasionally seeing a seg fault and/or "ap_get_scoreboard_lb(%d) failed in child" in logs in apache on one particular instance of our software (see anonymised example below). This should be on: apache2-mpm-prefork 2.2.14-5ubuntu8.7 or similar (I am checking). This occurs after doing a 'relo

Re: [users@httpd] how to add multiple redirection rule in .htaccess ?

2012-06-27 Thread J. Bakshi
Many many thanks On Wed, 27 Jun 2012 17:26:56 +1000 Igor Cicimov wrote: > RewriteCond %{HTTP_HOST} ^mydomain.com [OR] > RewriteCond %{HTTP_HOST} ^www.mydomain.com > RewriteCond %{REQUEST_URI} !folderB/ > RewriteCond %{REQUEST_URI} !folderA/ > RewriteRule ^(.*)$ folderB/ [L] > > > On Wed

Re: [users@httpd] Potential Bug in mpm_common.c

2012-06-27 Thread Lazy
2012/6/14 Ken Cheung : > I observed a code clone in the following files. In the > function ap_mpm_set_max_mem_free the variable "value" has to be multiplied > by 1024 before exit while ap_mpm_set_thread_stacksize does not perform this > operation. I wonder if this is necessary. Hope it helps. acco

Re: [users@httpd] how to add multiple redirection rule in .htaccess ?

2012-06-27 Thread Igor Cicimov
RewriteCond %{HTTP_HOST} ^mydomain.com [OR] RewriteCond %{HTTP_HOST} ^www.mydomain.com RewriteCond %{REQUEST_URI} !folderB/ RewriteCond %{REQUEST_URI} !folderA/ RewriteRule ^(.*)$ folderB/ [L] On Wed, Jun 27, 2012 at 3:53 PM, J. Bakshi wrote: > Dear list, > > I already have the following at my