RE: [EMAIL PROTECTED] lower cpu priority to perl scripts

2008-08-27 Thread Tamer Embaby
Audio, You can always start your scripts with [re]nice() syscall to lower your process (perl script in this case) priority. Regards, Tamer -Original Message- From: Audio Phile [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 8:57 PM To: users@httpd.apache.org Subject: [EMAIL PROT

RE: [EMAIL PROTECTED] Serving content for hand held devices and phones?

2008-10-21 Thread Tamer Embaby
Knute, I believe this would depend on detecting the user agent and serving content accordingly. PDAs and phones declare themselves (mostly) in User-Agent HTTP header. Regards, Tamer -Original Message- From: Knute Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 7:53 PM

RE: [EMAIL PROTECTED] Combining caching and rewrites

2008-11-26 Thread Tamer Embaby
Wi, Apache mod_cache hooks itself before mod_rewrite (APR_HOOK_FIRST vs. APR_HOOK_MIDDLE), so the cache will get called first, if content doesn't exist, request will be passed to next handler which is mod_rewrite, which will handle getting the page, then Apache will CACHE_SAVE the response so that

[EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-11-30 Thread Tamer Embaby
Karim, I'm afraid you have to do that programmatically. We've done that in a project before with Apache 2.0 by knowing how Apache encodes URL for storing in internal cache directories, read it from: modules/cache_util.c: cache_hash(...) Which is controlled using: CacheDirLevels X

[EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Tamer Embaby
D] RE: Clearing cache selectively on Apache + mod_cache Why do you think using request headers would not work? From: Tamer Embaby [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 1:39 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Tamer Embaby
Eric, So using 2 vhosts would be: # External vhost ServerName www.example.com CacheRoot /path/to/cache Cache disk /url CacheIgnoreCacheControl On CacheMaxExpire 86400 CacheDefaultExpire 86400 # Internal vhost ServerName cache-internal.ex

RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Tamer Embaby
3:50 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache On Mon, Dec 1, 2008 at 8:42 AM, Tamer Embaby <[EMAIL PROTECTED]> wrote: > Eric, > > So using 2 vhosts would be: > > # External vhost > >ServerNa

[us...@httpd] RE: 32 bit Apache on 64 bit RHEL5.2 machine

2008-12-31 Thread Tamer Embaby
Vinay, You should use: $ export CFLAGS="-m32" Then continue with the ./configure and Apache compilation as usual. Tamer -Original Message- From: Vinay Purohit [mailto:vinay.puro...@trianz.com] Sent: Tuesday, December 30, 2008 3:01 PM To: users@httpd.apache.org Subject: [us...@httpd] 32

[EMAIL PROTECTED] Apache mod_rewrite/mod_proxy conflict?

2007-12-10 Thread Tamer Embaby
Dear all, I have the following simple setup: [1] LoadModule rewrite_module modules/mod_rewrite.so [2] LoadModule proxy_module modules/mod_proxy.so [3] LoadModule proxy_http_module modules/mod_proxy_http.so [4] RewriteEngine on [5] ProxyPass /testing http://myserverB/ [6] ProxyPassReverse /testing

RE: [EMAIL PROTECTED] Apache mod_rewrite/mod_proxy conflict?

2007-12-10 Thread Tamer Embaby
:19 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Apache mod_rewrite/mod_proxy conflict? Tamer Embaby wrote: > I have the following simple setup: > > [1] LoadModule rewrite_module modules/mod_rewrite.so > [2] LoadModule proxy_module modules/mod_proxy.so >

RE: RE: [EMAIL PROTECTED] Apache mod_rewrite/mod_proxy conflict?

2007-12-10 Thread Tamer Embaby
ould have gotten the upper hand on RewriteRule and there would have been nothing you could do about it except from what was suggested to you. -ascs -Message d'origine- De : Tamer Embaby [mailto:[EMAIL PROTECTED] Envoyé : lundi 10 décembre 2007 16:05 À : users@httpd.apache.org Objet

RE: Re: [EMAIL PROTECTED] Apache mod_rewrite/mod_proxy conflict?

2007-12-11 Thread Tamer Embaby
e. The fixup handler of mod_proxy is a predecessor of the one of mod_rewrite. Have a look at mod_rewrite.c and mod_proxy.c. You will find the function register_hooks() at the bottom of each file. -ascs -Message d'origine- De : Tamer Embaby [mailto:[EMAIL PROTECTED] Envoyé : lundi

[EMAIL PROTECTED] Compiling Apache 2.2.8 under HP-UX 11i v2

2008-02-27 Thread Tamer Embaby
Hello all, I'm trying to compile Apache 2.2.8 but failing with something that I believe to be error on the generated "libtool" utility, or may be a mistake from my side, but I'm not sure which. Information about the system: $ uname -a HP-UX SPHINX B.11.23 U ia64 4017848671 unlimited-user license

RE: RE: [EMAIL PROTECTED] Compiling Apache 2.2.8 under HP-UX 11i v2

2008-02-27 Thread Tamer Embaby
iler I get the same error you do and when I utilize the HP ANSI C compiler if receive a message: ld: Can't find dependent library "libapr-1.so.2" Hopefully someone will have a suggestion. If I find anything I'll pass it along. -----Original Message- From: Tamer Embaby

RE: [EMAIL PROTECTED] tuning

2008-03-02 Thread Tamer Embaby
Krishna, You may use mod_mem_cache when appropriate as this improves number of concurrency dramatically. Also, IMO, avoid using "rotatelogs", it's a huge bottleneck! Regards, Tamer From: Krishna Chandra Prajapati [mailto:[EMAIL PROTECTED] Sent: Friday, February

[EMAIL PROTECTED] Apache 2.2 Loadbalancing/session stickiness for BEA WL 8.1

2008-03-12 Thread Tamer Embaby
Hello all, I have the below configuration on my Apache 2.2.8 test server, my 2 backends are BEA WebLogic 8.1 servers, basically I'm testing if I can achieve the same load balancing feature that third party BEA WL 8.1 weblogic_module is doing. I open a browser window and wnet to: http://myserver/

RE: [EMAIL PROTECTED] Apache 2.2 Loadbalancing/session stickiness for BEA WL 8.1

2008-03-13 Thread Tamer Embaby
1. for example 423423434134 2. . for example 423423434134.weblogic1 Can you please confirm me from logs which option as above r u getting from Cookies JSESSIONID value? -Original Message- From: Tamer Embaby [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 12:18 AM To: us

[EMAIL PROTECTED] Proxying woes.

2008-03-18 Thread Tamer Embaby
Hello, According to http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html: ^/somepath(.*) /otherpath$1 [P]: doesn't make sense, not supported I have a client who has: ServerName example.com RewriteCond %{REQUEST_URI} !^/SomePath/ [1] RewriteRule ^/(.*)$ /SomePath/$1 [L,P] [2] ProxyPass /SomePath

RE: [EMAIL PROTECTED] Loadbalancing/stickysession/Source_IP

2008-03-30 Thread Tamer Embaby
Yavor, I'm not quite sure about how to setup proxy_load_balancer to stick by source IP, but I guess you can install 2 frontend Apaches infront of your backends webclients to be sure that those Apaches will always send beackend specific Cookie header for your load balancer. May be that would hel

RE: [EMAIL PROTECTED] Adding a Header to the httpd response

2008-04-23 Thread Tamer Embaby
Salih, Here is a patch that could be run against mod_headers.c that will add a new action "fset" which will set a header only if the header is not set before. Apply the patch using: $ patch mod_headers.c < mod_headers.c.fset_patch Compile and install to your 2.2.X Apache using: $ /path/to/apache

RE: [EMAIL PROTECTED] Trying to modify Server header for apache 2.2.4 but fails

2008-06-01 Thread Tamer Embaby
Soumendu, Moreover, you can use mod_security to change it using SecServerSignature directive. Tamer From: Tamer Embaby [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 6:31 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Trying to modify Server

RE: [EMAIL PROTECTED] Trying to modify Server header for apache 2.2.4 but fails

2008-06-01 Thread Tamer Embaby
Soumendu, You cannot achieve that with mod_headers AFAIK. "Server" header is an exception, you have to change it in code and recompile Apache. Regards, Tamer From: Nir Peled [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 4:38 PM To: Nir Peled; users@httpd