[users@httpd] Apache rewrite rule with hungarian character set
Hi, I am trying to configure a rewrite rule in Apache which runs on Linux server, the Apache instance has multiple virtual host one of the site runs for Hungary. While the user requested for a rewrite rule with Hungarian character set which is appearing ok in browser, however when I try to create rewrite rule which interprets the hungarian characters into mixture of special characters. Please advice, how could I achieve this, below is an example. Hungarian Character: *Öt_jó_ok a_barátságok_ápolására* Interpreted in Linux as *..t_j.._ok a_bar..ts..gok_..pol..s..ra* OR * a_bar..ts..gok_..pol..s..ra* -- Arun J
[users@httpd] Re: Apache balancer manager duplicate entries with no JVM route
Hi, Appreciate if someone share your concerns / advice on this issue. Best Regards, Arun Janarthanan On Thu, Jul 7, 2011 at 11:41 AM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Hi, We are running Apache 2.2.17 on RedHat Enterprise Linux with 64bit pltform with Tomcat instances running as backend, very recently we moved our servers from 32bit Linux to 64bit RHEL servers. Server Version: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 PHP/5.1.6 Server Built: Feb 25 2011 09:39:45 We have noticed the balancer-manager status page shows duplicate enties (one more entry against each balancer) in the balancer manager, the Apache configuration checked completely with no clue. Here is the status page attached, kindly advice if this is a bug in Apache. We have come across another bug related to balancer-manager shared memory related issues the softrestart in Apache does not clear the balancer-manager values, however this seems to be different one. Thanks in advance and apologize if I had any typo in my above problem description. -- Best Regards, Arun Janarthanan -- Best Regards, Arun Janarthanan http://www.linkedin.com/in/arunjanarthanan http://www.facebook.com/arun.janarthanan http://twitter.com/#!/ArunJanarthanan
Re: [users@httpd] REQUEST_URI multiple wildcard pattern
Thank you all once again, on assisting with this issue. The requirement was unclear till we were asked to point all the URL that should not go to page-not-found page to /index.php. Now we did not have to create a negation on request_uri rather a simple RewriteRule to point those pages to index.php. Arun J On Sun, May 1, 2011 at 11:24 AM, Lee Goddard lee...@gmail.com wrote: Make sure /files does actually exist, otherwise Apache will be applying the rewrite rule to whatever your defined ErrorDocument is, if any. Check the documentation on httpd.apache.org for RewriteLog and RewriteLogLevel - they can be VERY helpful. Make sure you remove those directives when you are done, you do not want to be logging rewrites on a live server. On 30/04/2011 18:41, Arunkumar Janarthanan wrote: Thank you very much Lee, appreciate your assistance with this issue. However with the below rule the URI pattern with actual string even is not working. Like I said when I try with wget www.xyz.com/files that goes to www.abc.com/page-not-found. RewriteRule !^/(files|admin|user|product|go)$ http://www.abc.com/page-not-found [R=301,NC,L] Thanks once again for helping me on this. On Sat, Apr 30, 2011 at 12:00 PM, Lee lee...@gmail.com wrote: Hi Arunkumar You have a list of URIs to NOT match for redirection, so begin the pattern, as you did, with ! RewriteRule ! You then have a group of top-level directory or files to be ignored, so you can anchor at the start of the URI: RewriteRule !^/ Then put all your dir/file names in braces, delimited by the OR operator, I RewriteRule !^/(this|that) Then follow with the URI to which everything should be directed that does not match: RewriteRule !^/(this|that) http://your-other-host/page-not-page. I wasn't quite sure about your spec's use of wildcards, sometimes you have them after an /oblique/, sometimes without, sometimes not at all. I assumed that was a typo, and that every item should have a wildcard star. If that is not the case, please drop me a line off-list. HTH Lee PS There is a note on wildcards in ! negated patterns, and why to avoid them: http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule Note When using the NOT character to negate a pattern, you cannot include grouped wildcard parts in that pattern. This is because, when the pattern does NOT match (ie, the negation matches), there are no contents for the groups. Thus, if negated patterns are used, you cannot use |$N| in the substitution string! On 30/04/2011 14:05, Arunkumar Janarthanan wrote: Hi Lee, sorry for posting the requirement as it is, this is what the requirement exactly. 1. http://xyz.com/esweep* - no redirection at all (so urls like esweepconfirm/thank-you/ do not redirect) 2. http://xyz.com/user* - no redirection at all 3. http://xyz.com/files/* - no redirection at all 4. http://xyz.com/admin* - no redirection at all 5. http://xyz.com/go - no redirection at all 6. All other - redirect to http://www.abc.com/page-not-found Best Regards, Arun J On Sat, Apr 30, 2011 at 7:44 AM, Lee Goddard lee...@gmail.com mailto:lee...@gmail.com lee...@gmail.com wrote: Hi Arunkumar You wrote, I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? This is not true. Nothing beginning with the words files, or admin, or user, or product, or go, would match. You do not need to terminate the pattern with a wildcard -- you have a match at the beginning. What is it exactly that you are trying to achieve? Lee On 30/04/2011 12:44, Arunkumar Janarthanan wrote: Thanks Lee, for your reply. I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? Is why I tried with (.*) but the wildcard string still not getting picked up by the rule. On Sat, Apr 30, 2011 at 2:22 AM, Lee lee...@gmail.com mailto:lee...@gmail.com lee...@gmail.com wrote: On 30/04/2011 05:46, Arunkumar Janarthanan wrote: Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match of the URI pattern. RewriteCond %{REQUEST_URI} !^/(files(.*)|admin(.*)|user(.*)|product(.*)|go(.*))$ RewriteRule .* http://www.abc.com/page-not-found [R=301,NC,L] RewriteCond %{REQUEST_URI} !^/(files|admin|user|product|go) Round brackets are good for grouping OR clauses (produce|admin
Re: [users@httpd] REQUEST_URI multiple wildcard pattern
Thanks Lee, for your reply. I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? Is why I tried with (.*) but the wildcard string still not getting picked up by the rule. On Sat, Apr 30, 2011 at 2:22 AM, Lee lee...@gmail.com wrote: On 30/04/2011 05:46, Arunkumar Janarthanan wrote: Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match of the URI pattern. RewriteCond %{REQUEST_URI} !^/(files(.*)|admin(.*)|user(.*)|product(.*)|go(.*))$ RewriteRule .* http://www.abc.com/page-not-found [R=301,NC,L] RewriteCond %{REQUEST_URI} !^/(files|admin|user|product|go) Round brackets are good for grouping OR clauses (produce|admin), and good for storing back-references (.*). But you are not using back-references, so you can drop a lot of those brackets. Also, you can simply your use of the gobble-everything operator (.*) by putting it at the end - although why would you need it? You simply need to match a few phrases at the beginning of the string. So: ! If REQUEST_URI does not match ^ from the start / oblique (files|admin|user|product|go) any of these phrases HTH Lee
Re: [users@httpd] REQUEST_URI multiple wildcard pattern
Hi Lee, sorry for posting the requirement as it is, this is what the requirement exactly. 1. http://xyz.com/esweep* - no redirection at all (so urls like esweepconfirm/thank-you/ do not redirect) 2. http://xyz.com/user* - no redirection at all 3. http://xyz.com/files/* - no redirection at all 4. http://xyz.com/admin* - no redirection at all 5. http://xyz.com/go - no redirection at all 6. All other - redirect to http://www.abc.com/page-not-found Best Regards, Arun J On Sat, Apr 30, 2011 at 7:44 AM, Lee Goddard lee...@gmail.com wrote: Hi Arunkumar You wrote, I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? This is not true. Nothing beginning with the words files, or admin, or user, or product, or go, would match. You do not need to terminate the pattern with a wildcard -- you have a match at the beginning. What is it exactly that you are trying to achieve? Lee On 30/04/2011 12:44, Arunkumar Janarthanan wrote: Thanks Lee, for your reply. I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? Is why I tried with (.*) but the wildcard string still not getting picked up by the rule. On Sat, Apr 30, 2011 at 2:22 AM, Lee lee...@gmail.com wrote: On 30/04/2011 05:46, Arunkumar Janarthanan wrote: Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match of the URI pattern. RewriteCond %{REQUEST_URI} !^/(files(.*)|admin(.*)|user(.*)|product(.*)|go(.*))$ RewriteRule .* http://www.abc.com/page-not-found [R=301,NC,L] RewriteCond %{REQUEST_URI} !^/(files|admin|user|product|go) Round brackets are good for grouping OR clauses (produce|admin), and good for storing back-references (.*). But you are not using back-references, so you can drop a lot of those brackets. Also, you can simply your use of the gobble-everything operator (.*) by putting it at the end - although why would you need it? You simply need to match a few phrases at the beginning of the string. So: ! If REQUEST_URI does not match ^ from the start / oblique (files|admin|user|product|go) any of these phrases HTH Lee
Re: [users@httpd] REQUEST_URI multiple wildcard pattern
Thank you very much Lee, appreciate your assistance with this issue. However with the below rule the URI pattern with actual string even is not working. Like I said when I try with wget www.xyz.com/files that goes to www.abc.com/page-not-found. RewriteRule !^/(files|admin|user|product|go)$ http://www.abc.com/page-not-found [R=301,NC,L] Thanks once again for helping me on this. On Sat, Apr 30, 2011 at 12:00 PM, Lee lee...@gmail.com wrote: Hi Arunkumar You have a list of URIs to NOT match for redirection, so begin the pattern, as you did, with ! RewriteRule ! You then have a group of top-level directory or files to be ignored, so you can anchor at the start of the URI: RewriteRule !^/ Then put all your dir/file names in braces, delimited by the OR operator, I RewriteRule !^/(this|that) Then follow with the URI to which everything should be directed that does not match: RewriteRule !^/(this|that) http://your-other-host/page-not-page. I wasn't quite sure about your spec's use of wildcards, sometimes you have them after an /oblique/, sometimes without, sometimes not at all. I assumed that was a typo, and that every item should have a wildcard star. If that is not the case, please drop me a line off-list. HTH Lee PS There is a note on wildcards in ! negated patterns, and why to avoid them: http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule Note When using the NOT character to negate a pattern, you cannot include grouped wildcard parts in that pattern. This is because, when the pattern does NOT match (ie, the negation matches), there are no contents for the groups. Thus, if negated patterns are used, you cannot use |$N| in the substitution string! On 30/04/2011 14:05, Arunkumar Janarthanan wrote: Hi Lee, sorry for posting the requirement as it is, this is what the requirement exactly. 1. http://xyz.com/esweep* - no redirection at all (so urls like esweepconfirm/thank-you/ do not redirect) 2. http://xyz.com/user* - no redirection at all 3. http://xyz.com/files/* - no redirection at all 4. http://xyz.com/admin* - no redirection at all 5. http://xyz.com/go - no redirection at all 6. All other - redirect to http://www.abc.com/page-not-found Best Regards, Arun J On Sat, Apr 30, 2011 at 7:44 AM, Lee Goddard lee...@gmail.com mailto:lee...@gmail.com lee...@gmail.com wrote: Hi Arunkumar You wrote, I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? This is not true. Nothing beginning with the words files, or admin, or user, or product, or go, would match. You do not need to terminate the pattern with a wildcard -- you have a match at the beginning. What is it exactly that you are trying to achieve? Lee On 30/04/2011 12:44, Arunkumar Janarthanan wrote: Thanks Lee, for your reply. I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like user/login ? or products/newarrival ? Is why I tried with (.*) but the wildcard string still not getting picked up by the rule. On Sat, Apr 30, 2011 at 2:22 AM, Lee lee...@gmail.com mailto:lee...@gmail.com lee...@gmail.com wrote: On 30/04/2011 05:46, Arunkumar Janarthanan wrote: Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match of the URI pattern. RewriteCond %{REQUEST_URI} !^/(files(.*)|admin(.*)|user(.*)|product(.*)|go(.*))$ RewriteRule .* http://www.abc.com/page-not-found [R=301,NC,L] RewriteCond %{REQUEST_URI} !^/(files|admin|user|product|go) Round brackets are good for grouping OR clauses (produce|admin), and good for storing back-references (.*). But you are not using back-references, so you can drop a lot of those brackets. Also, you can simply your use of the gobble-everything operator (.*) by putting it at the end - although why would you need it? You simply need to match a few phrases at the beginning of the string. So: ! If REQUEST_URI does not match ^ from the start / oblique (files|admin|user|product|go) any of these phrases HTH Lee
[users@httpd] REQUEST_URI multiple wildcard pattern
Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match of the URI pattern. RewriteCond %{REQUEST_URI} !^/(files(.*)|admin(.*)|user(.*)|product(.*)|go(.*))$ RewriteRule .* http://www.abc.com/page-not-found [R=301,NC,L] Please advice. Arun J
[us...@httpd] Internet explorer saves Drupal Dynamic pages with ProxyPass enabled on Apache
Hi, I have moved my site running on Drupal from with Boost enabled from one server to another, the only difference is I have used light weight ProxyPass Apache model in where the front end Apache running on port 80 servers static pages. There is another Apache running on backend with port 8080 is serving the PHP pages from Drupal. ProxyPassReverse / http://www.domain.com:8080/ RewriteEngine on RewriteCond %{REQUEST_URI} !^\.(gif|png|jpg|server-status)$ RewriteRule ^/(.*) http://www.domain.com:8080/$1 [P] With Deflate and below settings enabled. However the below settings were exist before too. IfModule mod_deflate.c FilesMatch \.(js|css|gif|jpg|png)$ SetOutputFilter DEFLATE /FilesMatch /IfModule SetEnvIf mime image/.* unset-cookie Header unset Set-Cookie env=unset-cookie Could this cause something to Internet explorer to prompt to save the page with the message Internet explorer cannot download / from The file you are trying to download either unavailable or server busy. The same site working ok in Firefox. Any thoughts ? Best Regards, Arun Janarthanan
[users@httpd] Apache rewriterule generator with multiple null query string
Hi All, Do we have any tool that can generate based on the input / rule I select ? I have an URL that contain a query string. The condition should check if the query string parameter is Null and Or the query string parameter is not passed at all should go to a specific page ? Please advice. Best Regards, Arun Janarthanan
[us...@httpd] Help !!! Apache HTTP process consumes high memory usage
Hi, I have build an Apache instance 2.2.15 with prefork MPM and most of the modules as shared. I have PHP and MYSQL installed and configured on this machine (MYSQL client) with this every process created by Apache daemon consumes 280M memory almost for each call. I am running on RHEL 5 with 5 Gig of memory when load increases on server it takes down the machine. Also I could see each library getting called thrice makes the HTTPD daemon heavy weight. Please advice how could I trim down the memory consumption by each process. 2ba99ca0f000 8K rw--- /usr/lib64/php/modules/mysql.so 2ba99ca2c000 1220K r-x-- /usr/lib64/mysql/libmysqlclient.so.16.0.0 2ba99cb5d000 2044K - /usr/lib64/mysql/libmysqlclient.so.16.0.0 2ba99cd5c000308K rw--- /usr/lib64/mysql/libmysqlclient.so.16.0.0 2ba99cda9000 4K rw---[ anon ] 2ba99cdaa000104K r-x-- /usr/lib64/php/modules/mysqli.so 2ba99cdc4000 2044K - /usr/lib64/php/modules/mysqli.so 2ba99cfc3000 12K rw--- /usr/lib64/php/modules/mysqli.so 2ba99cfc6000 4K rw---[ anon ] 2ba99cfc7000 88K r-x-- /usr/lib64/php/modules/pdo.so 2ba99cfdd000 2048K - /usr/lib64/php/modules/pdo.so 2ba99d1dd000 12K rw--- /usr/lib64/php/modules/pdo.so 2ba99d1e 24K r-x-- /usr/lib64/php/modules/pdo_mysql.so 2ba99d1e6000 2048K - /usr/lib64/php/modules/pdo_mysql.so 2ba99d3e6000 4K rw--- /usr/lib64/php/modules/pdo_mysql.so 2ba99d3e7000 20K r-x-- /usr/lib64/php/modules/pdo_sqlite.so 2ba99d3ec000 2048K - /usr/lib64/php/modules/pdo_sqlite.so 2ba99d5ec000 4K rw--- /usr/lib64/php/modules/pdo_sqlite.so 2ba99d608000356K r-x-- /usr/lib64/libsqlite3.so.0.8.6 2ba99d661000 2044K - /usr/lib64/libsqlite3.so.0.8.6 2ba99d86 12K rw--- /usr/lib64/libsqlite3.so.0.8.6 2ba99d863000300K r-x-- /usr/lib64/php/modules/soap.so 2ba99d8ae000 2044K - /usr/lib64/php/modules/soap.so 2ba99daad000 12K rw--- /usr/lib64/php/modules/soap.so 2ba99dab 64K r-x-- /usr/lib64/php/modules/sqlite.so 2ba99dac 2044K - /usr/lib64/php/modules/sqlite.so 2ba99dcbf000 8K rw--- /usr/lib64/php/modules/sqlite.so 2ba99dcdc000284K r-x-- /usr/lib64/libsqlite.so.0.8.6 2ba99dd23000 2044K - /usr/lib64/libsqlite.so.0.8.6 2ba99df22000 12K rw--- /usr/lib64/libsqlite.so.0.8.6 2ba99df25000 28K r-x-- /usr/lib64/php/modules/wddx.so 2ba99df2c000 2048K - /usr/lib64/php/modules/wddx.so 2ba99e12c000 4K rw--- /usr/lib64/php/modules/wddx.so 2ba99e12d000 28K r-x-- /usr/lib64/php/modules/xmlreader.so 2ba99e134000 2044K - /usr/lib64/php/modules/xmlreader.so 2ba99e333000 8K rw--- /usr/lib64/php/modules/xmlreader.so 2ba99e335000 84K r-x-- /usr/lib64/php/modules/xmlrpc.so 2ba99e34a000 2048K - /usr/lib64/php/modules/xmlrpc.so 2ba99e54a000 4K rw--- /usr/lib64/php/modules/xmlrpc.so 2ba99e54b000 28K r-x-- /usr/lib64/php/modules/xmlwriter.so 2ba99e552000 2044K - /usr/lib64/php/modules/xmlwriter.so 2ba99e751000 8K rw--- /usr/lib64/php/modules/xmlwriter.so 2ba99e753000 28K r-x-- /usr/lib64/php/modules/xsl.so 2ba99e75a000 2044K - /usr/lib64/php/modules/xsl.so 2ba99e959000 4K rw--- /usr/lib64/php/modules/xsl.so 2ba99e95a000 68K r-x-- /usr/lib64/php/modules/zip.so 2ba99e96b000 2044K - /usr/lib64/php/modules/zip.so 2ba99eb6a000 8K rw--- /usr/lib64/php/modules/zip.so 7fff7f412000136K rw---[ stack ] ff60 8192K -[ anon ] total 287324K Best Regards, Arun J
[us...@httpd] Re: Help !!! Apache HTTP process consumes high memory usage
I could see its most of them from PHP and its components. 2ba99536f000 3168K r-x-- /usr/lib64/httpd/modules/libphp5.so 2ba995687000 2048K - /usr/lib64/httpd/modules/libphp5.so 2ba995887000288K rw--- /usr/lib64/httpd/modules/libphp5.so 2ba99a751000 56K r-x-- /usr/lib64/php/modules/curl.so 2ba99a75f000 2044K - /usr/lib64/php/modules/curl.so 2ba99a95e000 8K rw--- /usr/lib64/php/modules/curl.so 2ba99a96 28K r-x-- /usr/lib64/php/modules/dbase.so 2ba99a967000 2048K - /usr/lib64/php/modules/dbase.so 2ba99ab67000 4K rw--- /usr/lib64/php/modules/dbase.so 2ba99ab68000156K r-x-- /usr/lib64/php/modules/dom.so 2ba99ab8f000 2044K - /usr/lib64/php/modules/dom.so 2ba99ad8e000 24K rw--- /usr/lib64/php/modules/dom.so 2ba99ad95000348K r-x-- /usr/lib64/php/modules/gd.so 2ba99adec000 2048K - /usr/lib64/php/modules/gd.so 2ba99afec000 28K rw--- /usr/lib64/php/modules/gd.so 2ba99b52f000 28K r-x-- /usr/lib64/php/modules/json.so 2ba99b536000 2044K - /usr/lib64/php/modules/json.so 2ba99b735000 4K rw--- /usr/lib64/php/modules/json.so 2ba99b736000 44K r-x-- /usr/lib64/php/modules/ldap.so 2ba99b741000 2044K - /usr/lib64/php/modules/ldap.so 2ba99b94 4K rw--- /usr/lib64/php/modules/ldap.so 2ba99bda4000 1944K r-x-- /usr/lib64/php/modules/mbstring.so 2ba99bf8a000 2048K - /usr/lib64/php/modules/mbstring.so 2ba99c18a000 36K rw--- /usr/lib64/php/modules/mbstring.so 2ba99c193000 32K r-x-- /usr/lib64/php/modules/mcrypt.so 2ba99c19b000 2048K - /usr/lib64/php/modules/mcrypt.so 2ba99c39b000 4K rw--- /usr/lib64/php/modules/mcrypt.so 2ba99c5ef000 84K r-x-- /usr/lib64/php/modules/memcache.so 2ba99c604000 2044K - /usr/lib64/php/modules/memcache.so 2ba99c803000 8K rw--- /usr/lib64/php/modules/memcache.so 2ba99c805000 44K r-x-- /usr/lib64/php/modules/mysql.so 2ba99c81 2044K - /usr/lib64/php/modules/mysql.so 2ba99ca0f000 8K rw--- /usr/lib64/php/modules/mysql.so 2ba99cdaa000104K r-x-- /usr/lib64/php/modules/mysqli.so 2ba99cdc4000 2044K - /usr/lib64/php/modules/mysqli.so 2ba99cfc3000 12K rw--- /usr/lib64/php/modules/mysqli.so 2ba99cfc7000 88K r-x-- /usr/lib64/php/modules/pdo.so 2ba99cfdd000 2048K - /usr/lib64/php/modules/pdo.so 2ba99d1dd000 12K rw--- /usr/lib64/php/modules/pdo.so 2ba99d1e 24K r-x-- /usr/lib64/php/modules/pdo_mysql.so 2ba99d1e6000 2048K - /usr/lib64/php/modules/pdo_mysql.so 2ba99d3e6000 4K rw--- /usr/lib64/php/modules/pdo_mysql.so 2ba99d3e7000 20K r-x-- /usr/lib64/php/modules/pdo_sqlite.so 2ba99d3ec000 2048K - /usr/lib64/php/modules/pdo_sqlite.so 2ba99d5ec000 4K rw--- /usr/lib64/php/modules/pdo_sqlite.so 2ba99d863000300K r-x-- /usr/lib64/php/modules/soap.so 2ba99d8ae000 2044K - /usr/lib64/php/modules/soap.so 2ba99daad000 12K rw--- /usr/lib64/php/modules/soap.so 2ba99dab 64K r-x-- /usr/lib64/php/modules/sqlite.so 2ba99dac 2044K - /usr/lib64/php/modules/sqlite.so 2ba99dcbf000 8K rw--- /usr/lib64/php/modules/sqlite.so 2ba99df25000 28K r-x-- /usr/lib64/php/modules/wddx.so 2ba99df2c000 2048K - /usr/lib64/php/modules/wddx.so 2ba99e12c000 4K rw--- /usr/lib64/php/modules/wddx.so 2ba99e12d000 28K r-x-- /usr/lib64/php/modules/xmlreader.so 2ba99e134000 2044K - /usr/lib64/php/modules/xmlreader.so 2ba99e333000 8K rw--- /usr/lib64/php/modules/xmlreader.so 2ba99e335000 84K r-x-- /usr/lib64/php/modules/xmlrpc.so 2ba99e34a000 2048K - /usr/lib64/php/modules/xmlrpc.so 2ba99e54a000 4K rw--- /usr/lib64/php/modules/xmlrpc.so 2ba99e54b000 28K r-x-- /usr/lib64/php/modules/xmlwriter.so 2ba99e552000 2044K - /usr/lib64/php/modules/xmlwriter.so 2ba99e751000 8K rw--- /usr/lib64/php/modules/xmlwriter.so 2ba99e753000 28K r-x-- /usr/lib64/php/modules/xsl.so 2ba99e75a000 2044K - /usr/lib64/php/modules/xsl.so 2ba99e959000 4K rw--- /usr/lib64/php/modules/xsl.so 2ba99e95a000 68K r-x-- /usr/lib64/php/modules/zip.so 2ba99e96b000 2044K - /usr/lib64/php/modules/zip.so 2ba99eb6a000 8K rw--- /usr/lib64/php/modules/zip.so On Fri, May 14, 2010 at 1:10 AM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Hi, I have build an Apache instance 2.2.15 with prefork MPM and most of the modules as shared. I have PHP and MYSQL installed and configured on this machine (MYSQL client) with this every process created by Apache daemon consumes 280M memory almost for each call. I am running on RHEL 5 with 5 Gig of memory when load increases on server it takes down the machine. Also I
Re: [us...@httpd] ReverseProxy for Tomcat (AJP) not working for SSL redirects
Hi, Did you try the sslProxyEngine On, However I have got the specific error in my Apache log stating have to check this one. Hope this helps. Best Regards, Arun Janarthanan On Wed, Apr 28, 2010 at 5:44 AM, Mauri lai...@gmail.com wrote: Hi Timo. i don't know ajp protocol, but I have a similar configuration. this is my configuration that work fine with apache, mod_proxy as frontend and a tomcat 6 with SSL (8443) as backend. u don't set the end point (spike/ http://127.0.0.1:8009/spike/) but only the ProxyPass. I'm using another modules, also. Please check my configuration. I hope it can help you. Read this tutorial, it's very usefull: http://www.apachetutor.org/admin/reverseproxies Cheers, Mauri LoadModule ssl_module modules/mod_ssl.so LoadFile /usr/lib/libxml2.so LoadModule proxy_html_module modules/mod_proxy_html.so LoadModule xml2enc_module modules/mod_xml2enc.so LoadModule headers_modulemodules/mod_headers.so AddType application/x-httpd-php .amf AddType video/x-ms-asf asf asx AddType audio/x-ms-wma .wma AddType application/octet-stream .doc .xls .pdf AddType application/x-shockwave-flash swf Listen 443 Listen 80 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl.crl SSLPassPhraseDialog builtin SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000) SSLSessionCacheTimeout 300 SSLMutex default SSLRandomSeed startup file:/dev/urandom 256 SSLRandomSeed connect builtin SSLCryptoDevice builtin NameVirtualHost mydomain.com:443 VirtualHost mydomain.com:443 ServerName mydomain.com ProxyRequests off ProxyPass / https://10.173.90.167:8443/ ProxyHTMLURLMap https://10.173.90.167:8443 / Location / ProxyPassReverse https://10.173.90.167:8443/ ProxyHTMLEnable On ProxyHTMLURLMap / / RequestHeaderunset Accept-Encoding /Location SSLEngine on SSLProxyEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW SSLCertificateFile /etc/httpd/cert/certificate.cer SSLCertificateKeyFile /etc/httpd/cert/certificate.key SSLCertificateChainFile /etc/httpd/cert/IT_Global_CA.cer Files ~ \.(cgi|shtml|phtml|php3?)$ SSLOptions +StdEnvVars /Files Directory /var/www/cgi-bin SSLOptions +StdEnvVars /Directory SetEnvIf User-Agent .*MSIE.* \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog logs/ssl_request_log \ %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b /VirtualHost 2010/4/28 Timo Meinen timomei...@googlemail.com Hi, I have a problem with our reverse proxy. I asked this question to the tomcat-users mailinglist, too, but no one could help me and I am absolutely stuck with this problem. So, I hope some of the httpd experts here, may have an idea: Our configuration is a Apache 2.2 web server, acting as a reverse proxy for Tomcat 6. This is the configuration: ServerName it.localhost.de ProxyPass / ajp://127.0.0.1:8009/spike/ ProxyPassReverse/ ajp://127.0.0.1:8009/spike/ ProxyPassReverseCookiePath /spike / (This is the configuration in the VirtualHost entry for port 80. There is a second VHost for SSL with SSLProxyEngine On and SSLEngine On). As you can see, the webapp is hosted under ContextPath /spike but available through the proxy via /. Everything works fine, until the webapp sends an redirect to HTTPS. This is done via SpringSecurity. The problem is, that the ProxyPassReverse directive doesn't catch the ContextPath and converts it, if it includes the complete address. These are the logs from the web browser: GET http://it.localhost.de/users/65 = 302 = https://it.localhost.de/spike/users/65 1) Why does the ProxyPassReverse doesn't convert the /spike back to / in https://it.localhost.de/spike/users/65? Is it because the Header isn't relative? The protocol is still AJP and so the Proxy should know how to convert it, right? 1a) If so, how could the webapp switch from http to https and vice versa, when not able to send the absolute address with a new protocol? After this, I tried to set additional ProxyPassReverse directives: ProxyPassReverse/https://it.localhost.de/spike/ ProxyPassReverse/http://it.localhost.de/spike/ This time, the /spike/ is converted to /, but the two directives leads to an infintive loop of redirects to http://it.localhost.de/REQUEST-URI. 2) How can I stop this loop? or better 3) How can I configure the ProxyPassReverse correctly? Thank you very much for any help Timo Here are the debug information from httpd: [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(239): proxy: APR_BUCKET_IS_EOS [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(244): proxy: data to read (max 8186 at 4) [Tue Apr 27 16:54:39 2010] [debug] mod_proxy_ajp.c(259): proxy: got 0 bytes of data [Tue Apr 27 16:54:39 2010] [debug] ajp_header.c(652): ajp_read_header:
[us...@httpd] .htaccess functionalities
Hi, I see all the Directives and functionality of .htaccess file can be used from httpd.conf file itself, could somebody please advice what can be done from .htaccess which is not possible through Apache configuration file ? Many thanks. Arun J
Re: [us...@httpd] .htaccess functionalities
Thanks Nilesh, so according to you httpd.config file is more advanced than .htaccess ? On Sun, Apr 25, 2010 at 8:31 AM, Nilesh Govindarajan li...@itech7.comwrote: On 04/25/10 17:57, Arunkumar Janarthanan wrote: Hi, I see all the Directives and functionality of .htaccess file can be used from httpd.conf file itself, could somebody please advice what can be done from .htaccess which is not possible through Apache configuration file ? Many thanks. Arun J Everything that can be put in .htaccess can be very well put in the config files using Location, LocationMatch, Directory or DirectoryMatch But not everything in config files is possible to put in .htaccess. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] .htaccess functionalities
Thanks which docs says httpd.conf is super set of .htaccess file ? On Sun, Apr 25, 2010 at 8:39 AM, Nilesh Govindarajan li...@itech7.comwrote: On 04/25/10 18:07, Arunkumar Janarthanan wrote: Thanks Nilesh, so according to you httpd.config file is more advanced than .htaccess ? On Sun, Apr 25, 2010 at 8:31 AM, Nilesh Govindarajan li...@itech7.com mailto:li...@itech7.com wrote: On 04/25/10 17:57, Arunkumar Janarthanan wrote: Hi, I see all the Directives and functionality of .htaccess file can be used from httpd.conf file itself, could somebody please advice what can be done from .htaccess which is not possible through Apache configuration file ? Many thanks. Arun J Everything that can be put in .htaccess can be very well put in the config files using Location, LocationMatch, Directory or DirectoryMatch But not everything in config files is possible to put in .htaccess. -- Nilesh Govindarajan Site Server Administrator www.itech7.com http://www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org mailto:users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org mailto:users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org mailto:users-h...@httpd.apache.org Obviously. Read the docs. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Setting up Case insensitive Reverse Proxy
Hi, I would like to setup case insensitive reverse proxy for my site which has more than 100 such reverse proxy and the code has the links with different cases in it. As of now I am setting two Reverse PRoxy for such setup as below. ProxyPass /abc/http://www.xyx.com/ABC ProxyPassReverse /abc/ http://www.xyx.com/ABC ProxyPass /ABC/http://www.xyx.com/ABC ProxyPassReverse /ABC/ http://www.xyx.com/ABC Please advice. Best Reards, Arun Janarthanan
Re: [us...@httpd] Re: SSL mutual authentication client certificate creation using Keytool
Thanks Eric, my client for the Apache is another Java application. So I used keytool and generated trustore importing OpenSSL generated CA certificate. Now that I have used export option to generate a certificate from Keytool, How could I use this ceritificate now on Apache to authenticate the requests from my client application ? http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html Please advice. On Fri, Mar 5, 2010 at 9:23 AM, Eric Covener cove...@gmail.com wrote: On Fri, Mar 5, 2010 at 9:14 AM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Could anyone please advice with this ? Configure Apache to request a certificate from the client: http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient Configure Apache to trust the issuer of your clients certificate: http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslcacertificatefile -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] SSL mutual authentication client certificate creation using Keytool
Hi All, I have an application connecting to the secure Apache URL, I have generated OpenSSL certificates and used it as CA and servercert, also generated client certificate using hte below documentation. http://www.impetus.us/~rjmooney/projects/misc/clientcertauth.html However my client application ( another Java application) will connect to this Apache instance needs a client certificate for authentication. Now that I can use Keytool and import the Apache's client certificate and create a Keystore. However how to proceed further, how my Apache will understand the client's certificates and allow the client app to connect and process the requests ? Please advice. Arun J
[us...@httpd] Re: Apache server getting lot of Closing connection
Could anyone please advice on this ? On Sat, Feb 13, 2010 at 10:26 PM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Hi, I have Apache server 2.2.6 running on RedHat Linux 5 with ProxyPass and Reverse Proxy configured. The server limit has 512 connections. Now that the number of connection has always Closing connection and when load increases they make the maximum connection reached out. I used netstat -a output to check what is causing this could not much understand if this is caused by TIME_WAIT or the connections established to Tomcat not getting released. Please advice. ./apachectl_rd -V Server version: Apache/2.2.6 (Unix) Server built: Sep 26 2007 11:18:50 Server's Module Magic Number: 20051115:5 Server loaded: APR 1.2.11, APR-Util 1.2.10 Compiled using: APR 1.2.11, APR-Util 1.2.10 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) ./apachectl_rd -D DUMP_MODULES Loaded Modules: core_module (static) authn_file_module (static) authn_default_module (static) authz_host_module (static) authz_groupfile_module (static) authz_user_module (static) authz_default_module (static) auth_basic_module (static) include_module (static) filter_module (static) log_config_module (static) env_module (static) setenvif_module (static) proxy_module (static) proxy_connect_module (static) proxy_ftp_module (static) proxy_http_module (static) proxy_ajp_module (static) proxy_balancer_module (static) ssl_module (static) mpm_prefork_module (static) http_module (static) mime_module (static) status_module (static) autoindex_module (static) asis_module (static) cgi_module (static) negotiation_module (static) dir_module (static) actions_module (static) userdir_module (static) alias_module (static) rewrite_module (static) so_module (static) deflate_module (shared) php5_module (shared) remoteip_module (shared) Syntax OK
[us...@httpd] Apache server getting lot of Closing connection
Hi, I have Apache server 2.2.6 running on RedHat Linux 5 with ProxyPass and Reverse Proxy configured. The server limit has 512 connections. Now that the number of connection has always Closing connection and when load increases they make the maximum connection reached out. I used netstat -a output to check what is causing this could not much understand if this is caused by TIME_WAIT or the connections established to Tomcat not getting released. Please advice. ./apachectl_rd -V Server version: Apache/2.2.6 (Unix) Server built: Sep 26 2007 11:18:50 Server's Module Magic Number: 20051115:5 Server loaded: APR 1.2.11, APR-Util 1.2.10 Compiled using: APR 1.2.11, APR-Util 1.2.10 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) ./apachectl_rd -D DUMP_MODULES Loaded Modules: core_module (static) authn_file_module (static) authn_default_module (static) authz_host_module (static) authz_groupfile_module (static) authz_user_module (static) authz_default_module (static) auth_basic_module (static) include_module (static) filter_module (static) log_config_module (static) env_module (static) setenvif_module (static) proxy_module (static) proxy_connect_module (static) proxy_ftp_module (static) proxy_http_module (static) proxy_ajp_module (static) proxy_balancer_module (static) ssl_module (static) mpm_prefork_module (static) http_module (static) mime_module (static) status_module (static) autoindex_module (static) asis_module (static) cgi_module (static) negotiation_module (static) dir_module (static) actions_module (static) userdir_module (static) alias_module (static) rewrite_module (static) so_module (static) deflate_module (shared) php5_module (shared) remoteip_module (shared) Syntax OK
[us...@httpd] Apache balancer manager JVMRoute missing
Hello all, I have Apache/2.2.6 (Unix) Solaris 8 configured with 4 Tomcat instances balancing using proxy_ajp_module. I noticed that the balancer manager page does not show the JVMRoute to all other 3 Tomcat instances out of them App1 App2 are running on different machine where two other Tomcat instances running on same machine. The other behaviour I have with these Tomcat instances my application logs out users forcefully after any action triggered from the application rightafter user logged in. These behaviour is from the Tomcat instances App5_TC1 and App5_TC2 tomcat instances. I have separated those two Tomcat instances from the machine App5 now the application working fine. I have configured new balancer as i3c1test it shows the JVMRoute to one of the Tomcat only not for other. I have gone through few posts and seems there are one or two cases same as my problem as below, http://old.nabble.com/Apache-Http-sticky-session-problem.-td18877839.html LoadBalancer Status for balancer://i3c1http://10.100.106.21/balancer-manager?b=i3c1 StickySessionTimeoutFailoverAttemptsMethod JSESSIONID01 byrequests Worker URLRouteRouteRedirFactorSetStatusElectedToFrom ajp://10.100.106.23:8509http://10.100.106.21/balancer-manager?b=i3c1w=ajp://10.100.106.23:8509 app1_i3c1 10Ok1602 63K 39M ajp://10.100.106.107:8509http://10.100.106.21/balancer-manager?b=i3c1w=ajp://10.100.106.107:8509 app2_i3c1 10Ok1534 63K 37M -- LoadBalancer Status for balancer://i3c1testhttp://10.100.106.21/balancer-manager?b=i3c1test StickySessionTimeoutFailoverAttemptsMethod JSESSIONID01 byrequests Worker URLRouteRouteRedirFactorSetStatusElectedToFrom ajp://10.100.221.6:8509http://10.100.106.21/balancer-manager?b=i3c1testw=ajp://10.100.221.6:8509 10Ok1 0 0 ajp://10.100.221.6:8609http://10.100.106.21/balancer-manager?b=i3c1testw=ajp://10.100.221.6:8609 app5_i3c2 10Ok0 0 0 Please advice. Arun J
[us...@httpd] [Resolved] Apache balancer manager JVMRoute missing
I still do not know the reason why and how the routes were disappearing, however it seems the missing route is mandatory to be appended with the stickysessionid to be used for continuous session tracking. So used balancer manager page to enable it and got them back, that solved my problem. Thanks, Arun J On Mon, Feb 8, 2010 at 9:24 AM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Hello all, I have Apache/2.2.6 (Unix) Solaris 8 configured with 4 Tomcat instances balancing using proxy_ajp_module. I noticed that the balancer manager page does not show the JVMRoute to all other 3 Tomcat instances out of them App1 App2 are running on different machine where two other Tomcat instances running on same machine. The other behaviour I have with these Tomcat instances my application logs out users forcefully after any action triggered from the application rightafter user logged in. These behaviour is from the Tomcat instances App5_TC1 and App5_TC2 tomcat instances. I have separated those two Tomcat instances from the machine App5 now the application working fine. I have configured new balancer as i3c1test it shows the JVMRoute to one of the Tomcat only not for other. I have gone through few posts and seems there are one or two cases same as my problem as below, http://old.nabble.com/Apache-Http-sticky-session-problem.-td18877839.html LoadBalancer Status for balancer://i3c1http://10.100.106.21/balancer-manager?b=i3c1 StickySessionTimeoutFailoverAttemptsMethod JSESSIONID01 byrequests Worker URLRouteRouteRedirFactorSetStatusElectedToFrom ajp://10.100.106.23:8509http://10.100.106.21/balancer-manager?b=i3c1w=ajp://10.100.106.23:8509 app1_i3c1 10Ok1602 63K 39M ajp://10.100.106.107:8509http://10.100.106.21/balancer-manager?b=i3c1w=ajp://10.100.106.107:8509 app2_i3c1 10Ok1534 63K 37M -- LoadBalancer Status for balancer://i3c1testhttp://10.100.106.21/balancer-manager?b=i3c1test StickySessionTimeoutFailoverAttemptsMethod JSESSIONID01 byrequests Worker URLRouteRouteRedirFactorSetStatusElectedToFrom ajp://10.100.221.6:8509http://10.100.106.21/balancer-manager?b=i3c1testw=ajp://10.100.221.6:8509 10Ok1 0 0 ajp://10.100.221.6:8609http://10.100.106.21/balancer-manager?b=i3c1testw=ajp://10.100.221.6:8609 app5_i3c2 10Ok0 0 0 Please advice. Arun J
Re: [us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers
Could anyone help me with this issue ? I still see the number of workes differing to each Apache though it configured for well load balancing ? On Wed, Jan 27, 2010 at 3:50 PM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Gary, Here is the netstat output attached from one of the webserver where the connections are on HIGH numbers. Regarding the load balancer I am trying to explore more setting options. Thanks again for looking into this issue. Best Regards, Arun J On Wed, Jan 27, 2010 at 2:49 PM, Gary Smith gary.sm...@holdstead.comwrote: Arun, This is just a WAG, but I think that the problem still lies in the client side and how the load balancer is handling the requests. I would still be interested in seeing the netstat -atunep output from one of he affected machines when there is a high level of connections in a closed state. Even though the sessions aren’t sticky, is it possible that the load balancer is handling keep alive in such a way that it’s sending the back to the original server but on in a new state? (that’s a little beyond my knowledge though). Gary Smith *From:* Arunkumar Janarthanan [mailto:arunkumar.webad...@gmail.com] *Sent:* Wednesday, January 27, 2010 11:37 AM *To:* users@httpd.apache.org *Subject:* Re: [us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers Thanks Gary, The load balancing method we use is weight based, so apparently the load balancer suppose to send the traffic to the web server has least number of connections. However the Netscaler support confirmed they see eventual number of traffic routed to all 4 web servers. Regarding the Apache restart time, I restarted all 4 servers same time and checked could still see the requests on 1 3 are being handled. I dont think we have sticky session enabled at loadbalancer level. For the same problem we have not before changed the load balancer settings from sourceIP persistence to Weight based to have the load distributed equal on all the servers. IP port TypeStateReq/s 731-...30_80 x.x.x.x 80 HTTP UP 16/s 731-...31_80 x.x.x.x 80 HTTP UP 16/s 731-...31_80 x.x.x.x 80 HTTP UP 14/s 731-...55_80 x.x.x.x 80 HTTP UP 20/s Rsp/s Reqb/s Rspb/s ClntConn SvrConn MaxConn SurgeQ 731-...30_8016/s 12406/s 345117/s7 28500 731-...31_8016/s 10956/s 365025/s7 26200 731-...31_8014/s 11140/s 368655/s6 26800 731-...55_8020/s 14322/s 420105/s7 27200 However the Apache server status still shows the number of requests being handled huge difference. I have attached the balancer-manager page as well with this email. Best Regards, Arun J
Re: [us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers
Hi Peter, The load balancer set for round robin minumweight based, that the request transferred to the Apache instace has minimum connections. Best Regards, Arun J On Thu, Jan 28, 2010 at 12:54 PM, pmilan...@nypl.org wrote: What is the persistence setting on the Load Balancers? Is it different if persistence is turned off competely? Weighting servers will throw this off completely. Thanks- Peter J. Milanese, Senior Systems Engineer Information Technology Group The New York Public Library pet...@nypl.org - 212.621.0203 | | From: | | --| |Arunkumar Janarthanan arunkumar.webad...@gmail.com | --| | | To:| | --| |users@httpd.apache.org | --| | | Date: | | --| |01/28/2010 12:41 PM | --| | | Subject: | | --| |Re: [us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers | --| Could anyone help me with this issue ? I still see the number of workes differing to each Apache though it configured for well load balancing ? On Wed, Jan 27, 2010 at 3:50 PM, Arunkumar Janarthanan arunkumar.webad...@gmail.com wrote: Gary, Here is the netstat output attached from one of the webserver where the connections are on HIGH numbers. Regarding the load balancer I am trying to explore more setting options. Thanks again for looking into this issue. Best Regards, Arun J On Wed, Jan 27, 2010 at 2:49 PM, Gary Smith gary.sm...@holdstead.com wrote: Arun, This is just a WAG, but I think that the problem still lies in the client side and how the load balancer is handling the requests. I would still be interested in seeing the netstat -atunep output from one of he affected machines when there is a high level of connections in a closed state. Even though the sessions aren’t sticky, is it possible that the load balancer is handling keep alive in such a way that it’s sending the back to the original server but on in a new state? (that’s a little beyond my knowledge though). Gary Smith From: Arunkumar Janarthanan [mailto:arunkumar.webad...@gmail.com] Sent: Wednesday, January 27, 2010 11:37 AM To: users@httpd.apache.org Subject: Re: [us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers Thanks Gary, The load balancing method we use is weight based, so apparently the load balancer suppose to send the traffic to the web server has least number of connections. However the Netscaler support confirmed they see eventual number of traffic routed to all 4 web servers. Regarding the Apache restart time, I restarted all 4 servers same time and checked could still see the requests on 1 3 are being handled. I dont think we have sticky session enabled at loadbalancer level. For the same problem we have not before changed the load balancer settings from sourceIP persistence to Weight based to have the load distributed equal on all the servers. IP port TypeStateReq/s 731-...30_80 x.x.x.x 80 HTTP UP 16/s 731-...31_80 x.x.x.x 80 HTTP UP 16/s 731-...31_80 x.x.x.x 80 HTTP UP 14/s 731-...55_80 x.x.x.x 80 HTTP UP 20/s Rsp/s Reqb/s Rspb/s ClntConn SvrConn
[us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers
Hello All, We have apache servers running on RedHat Linux physical servers, all 4 servers are balanced by Citrix Netscaler 8.1 load balancer with round robin weight load sharing algorithm. However when I check the server status page to find the number of requests are served by each Apache server is showing uneven load / number of requests being processed by each Apache. I notice the load always getting processed by two specific Apache instances, here are the configuration details. Attached here the server status screen shot page of all 4 web servers. [r...@web bin]# ./apachectl -version Server version: Apache/2.2.6 (Unix) Server built: Sep 26 2007 11:18:50 [r...@web bin]# Operating System: Linux Host1 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 GNU/Linux Hardware configuration are same for all 4 physical Linux servers. Please advice. Best Regards, Arun J Title: Apache Status Apache Server Status for Server_Name Server Version: Apache/2.2.6 (Unix) mod_ssl/2.2.6 /content/openContent.do?contentId=14806wtGroup=HWREDIRECTwtID=firstladies [R=301,L,NC] PHP/5.2.4 Server Built: Sep 26 2007 11:18:50 Current Time: Tuesday, 26-Jan-2010 14:10:42 EST Restart Time: Tuesday, 19-Jan-2010 17:18:15 EST Parent Server Generation: 2 Server uptime: 6 days 20 hours 52 minutes 27 seconds Total accesses: 4533268 - Total Traffic: 129.2 GB CPU Usage: u1268.46 s135.24 cu0 cs0 - .236% CPU load 7.64 requests/sec - 228.2 kB/second - 29.9 kB/request 9 requests currently being processed, 41 idle workers W___WC...__W_.._.__._.__.C._...._...W.W_._.W._.._..___._W.__..._ Scoreboard Key: _ Waiting for Connection, S Starting up, R Reading Request, W Sending Reply, K Keepalive (read), D DNS Lookup, C Closing connection, L Logging, G Gracefully finishing, I Idle cleanup of worker, . Open slot with no current process Title: Apache Status Apache Server Status for Server_Name Server Version: Apache/2.2.6 (Unix) mod_ssl/2.2.6 xΒ PHP/5.2.4 Server Built: Sep 26 2007 11:18:50 Current Time: Tuesday, 26-Jan-2010 16:05:14 EST Restart Time: Monday, 25-Jan-2010 13:09:57 EST Parent Server Generation: 9 Server uptime: 1 day 2 hours 55 minutes 17 seconds Total accesses: 940921 - Total Traffic: 25.2 GB CPU Usage: u2432.93 s350.65 cu0 cs0 - 2.87% CPU load 9.71 requests/sec - 272.3 kB/second - 28.0 kB/request 229 requests currently being processed, 41 idle workers CCC_C_C__CC_CCC_C_CCC_C_WC_CCCWCW__CCWC_C_CCC__CC_CC_CC_C_C___C_CC____C___CCC_C___CW__.. Scoreboard Key: _ Waiting for Connection, S Starting up, R Reading Request, W Sending Reply, K Keepalive (read), D DNS Lookup, C Closing connection, L Logging, G Gracefully finishing, I Idle cleanup of worker, . Open slot with no current process Title: Apache Status Apache Server Status for Server_Name Server Version: Apache/2.2.6 (Unix) mod_ssl/2.2.6 `] P[ È[ n[ PHP/5.2.4 Server Built: Sep 26 2007 11:18:50 Current Time: Tuesday, 26-Jan-2010 16:00:20 EST Restart Time: Tuesday, 19-Jan-2010 20:35:14 EST Parent Server Generation: 1 Server uptime: 6 days 19 hours 25 minutes 5 seconds Total accesses: 4571364 - Total Traffic: 128.2 GB CPU Usage: u1064.76 s103.29 cu0 cs0 - .199% CPU load 7.77 requests/sec - 228.6 kB/second - 29.4 kB/request 4 requests currently being processed, 44 idle workers ___..__W__._..__.__..W___..___._.___.__.._..._._.W__.W..._.._.___.__ Scoreboard Key: _ Waiting for Connection, S Starting
Re: [us...@httpd] Apache Server status page shows uneven number of requests across load balanced web servers
Hi Nilesh, Thanks for your response. I have already checked this with Load balancer support found the requests are getting sitributed eventually from Netscaler end. So was chekcing if this could be an issue or known behaviour with Apache. Best Regards, Arun J On Wed, Jan 27, 2010 at 9:43 AM, Nilesh Govindarajan li...@itech7.comwrote: On 01/27/2010 08:06 PM, Arunkumar Janarthanan wrote: Hello All, We have apache servers running on RedHat Linux physical servers, all 4 servers are balanced by Citrix Netscaler 8.1 load balancer with round robin weight load sharing algorithm. However when I check the server status page to find the number of requests are served by each Apache server is showing uneven load / number of requests being processed by each Apache. I notice the load always getting processed by two specific Apache instances, here are the configuration details. Attached here the server status screen shot page of all 4 web servers. [r...@web bin]# ./apachectl -version Server version: Apache/2.2.6 (Unix) Server built: Sep 26 2007 11:18:50 [r...@web bin]# Operating System: Linux Host1 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 i686 i386 GNU/Linux Hardware configuration are same for all 4 physical Linux servers. Please advice. Best Regards, Arun J - The official User-To-User support forum of the Apache HTTP Server Project. SeeURL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org You're at the wrong place my friend. This is not a Citrix Netscaler Support list. Check with them. Its rare you'll get any help here. -- Nilesh Govindarajan Site Server Adminstrator www.itech7.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org