RE: [us...@httpd] Multiple Apache 2.2.8 installation on same redhat server, Error httpd (pid 3996) already running

2010-03-11 Thread Pramod Kumar
I think i need to change the installation dir details in the configure script for the second configuration and pid file reference. Regards, PRAMOD KUMAR Date: Thu, 11 Mar 2010 03:26:45 -0600 From: jeffhef...@gmail.com To: users@httpd.apache.org Subject: Re: [us...@httpd] Multiple

Re: [us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread Daniel Reinhardt
-- From: "Je suis la poubelle" Sent: 11 March, 2010 14:42 To: Subject: [us...@httpd] How to block IP addresses to the whole server? By going down all those conf files and reading from the web, I understand that I could write deny from a.b.

Re: [us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread Reese
On 11-Mar-10 11:11, John Doe wrote: From: Je suis la poubelle Yeah, I want o blacklist some IP addresses. I don't have iptables installed, and I don't want to have it. Is it possible to use Apache to block? BTW, I've tried the old way of creating a hosts.allow file to deny, but that

Re: [us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread Igor Cicimov
You need to put the ip in the hosts.deny file On Mar 12, 2010 3:11 AM, "John Doe" wrote: From: Je suis la poubelle > Yeah, I want o blacklist some IP addresses. I don't have > iptables installed, and I don't w... Try this: http://www.mkhelif.fr/2008/06/23/apache2-systeme-de-blacklist.html JD

Re: [us...@httpd] rewrite rule

2010-03-11 Thread Igor Cicimov
Just put ^(n=3)$ and it will work On Mar 12, 2010 3:34 AM, "Francis GALIEGUE" wrote: On Thu, Mar 11, 2010 at 16:56, Richard Schoenig wrote: > So here is the issue I am having now I have separate servers I am trying to > set this rule up on ... [...] > RewriteCond %{QUERY_STRING} ^(n=[3]+)$

[us...@httpd] Session swapped problem on Apache 2.2.10 with mod_proxy

2010-03-11 Thread Yang Lin
Hi there, We have an app fronted with Apache 2.2.10 with all default apache enabled modules. Rarely and randomly, we would encounter session swapped among logged in users. Say I have two logged in users in two browsers: A and B. They logged in and each have a unique session cookie. However at ra

Re: [us...@httpd] inter module communication

2010-03-11 Thread snmp apache
thanks, this looks promising, i will give it a try. On Thu, Mar 11, 2010 at 10:47 AM, Eric Covener wrote: > On Thu, Mar 11, 2010 at 10:01 AM, snmp apache > wrote: > > Hi Edgar, > > > > I am trying to call a function from all modules into one module, > > for example if i have the following modul

[us...@httpd] Asynchronous I/O Support

2010-03-11 Thread Yogesh Jhamb
I am working on a product that recently migrated from IIS to Apache 2.2. The product has an ISAPI extension that needs to support thousands of concurrent clients. Since IIS supports asynchronous I/O, the ISAPI extension component has been designed to leverage the benefits of asynchronous I/O. Howev

Re: [us...@httpd] rewrite rule

2010-03-11 Thread Francis GALIEGUE
On Thu, Mar 11, 2010 at 16:56, Richard Schoenig wrote: > So here is the issue I am having now I have separate servers I am trying to > set this rule up on so that if a n=1 or an n=2 it accesses server 1, and if > an n=3 then it accesses server 2 > [...] > RewriteCond %{QUERY_STRING}  ^(n=[3]+)$ W

Re: [us...@httpd] rewrite rule

2010-03-11 Thread Philip Wigg
On 11 March 2010 15:56, Richard Schoenig wrote: > So here is the issue I am having now I have separate servers I am trying to > set this rule up on so that if a n=1 or an n=2 it accesses server 1, and if > an n=3 then it accesses server 2 > > > > The rules I have setup are on server 2 I have it co

Re: [us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread John Doe
From: Je suis la poubelle > Yeah, I want o blacklist some IP addresses. I don't have > iptables installed, and I don't want to have it. Is it possible to > use Apache to block? > BTW, I've tried the old way of creating a hosts.allow file to > deny, but that didn't work. No idea why.

Re: [us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread Philip Wigg
On 11 March 2010 14:42, Je suis la poubelle wrote: > By going down all those conf files and reading from the web, I > understand that I could write > > deny from a.b.c.d > > inside every section I could find in order to block > access to IP address a.b.c.d > >   However, there are quite

RE: [us...@httpd] rewrite rule

2010-03-11 Thread Richard Schoenig
So here is the issue I am having now I have separate servers I am trying to set this rule up on so that if a n=1 or an n=2 it accesses server 1, and if an n=3 then it accesses server 2 The rules I have setup are on server 2 I have it configured like this RewriteEngine on Options +FollowSyml

Re: [us...@httpd] inter module communication

2010-03-11 Thread Eric Covener
On Thu, Mar 11, 2010 at 10:01 AM, snmp apache wrote: > Hi Edgar, > > I am trying to call a function from all modules into one module, > for example if i have the following modules, > A,B,C,D. and X > > I want to be able to call a function in module X from A,B,C, and D. > your thoughts? See the op

Re: [us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread Je suis la poubelle
Hi, Yeah, I want o blacklist some IP addresses. I don't have iptables installed, and I don't want to have it. Is it possible to use Apache to block? BTW, I've tried the old way of creating a hosts.allow file to deny, but that didn't work. No idea why. Thanks On Thu, Mar 11, 20

Re: [us...@httpd] inter module communication

2010-03-11 Thread snmp apache
Hi Edgar, I am trying to call a function from all modules into one module, for example if i have the following modules, A,B,C,D. and X I want to be able to call a function in module X from A,B,C, and D. your thoughts? hash On Thu, Mar 11, 2010 at 2:13 AM, Edgar Frank wrote: > 10/03/10 hashim

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Milan Tomic
> Try posting logs, netstat, server-status, etc to illustrate the current > problem. What does this log entry means: "proxy: AJP: disabled connection for (localhost)" Does it affect both Tomcats since port is not specified? TIA, Milan --

[us...@httpd] How to block IP addresses to the whole server?

2010-03-11 Thread Je suis la poubelle
By going down all those conf files and reading from the web, I understand that I could write deny from a.b.c.d inside every section I could find in order to block access to IP address a.b.c.d   However, there are quite a lot of sections in several conf files.  Is there a way to block

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Eric Covener
On Thu, Mar 11, 2010 at 9:12 AM, Milan Tomic wrote: > > >> You can't tell Apache to use one type of reverse proxy until it stops >> working then switch to another type. > > I wasn't trying this. My problem is: I have HTTPD as front end and 2 Tomcats > running different apps behind HTTPD. When one

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Milan Tomic
> You can't tell Apache to use one type of reverse proxy until it stops > working then switch to another type. I wasn't trying this. My problem is: I have HTTPD as front end and 2 Tomcats running different apps behind HTTPD. When one Tomcat runs out of memory, HTTPD stops working and doens't f

Re: [us...@httpd] How can I configure setting a Header in httpd.conf based on content type?

2010-03-11 Thread Baljeet Nijjhar
Can I ask, would I have any luck using LocationMatch to distinguish those requests which were for file attachment downloads, except by adding some parameter into the URL or having those pages served from a particular named path that I then search for? I am assuming I could distinguish images, javas

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Eric Covener
> This is why I would like to try to add JkMount directive, so HTTPD will use > workers and if one worker stops others will continue working. Does this make > any sense? How can I do this? > You can't tell Apache to use one type of reverse proxy until it stops working then switch to another type.

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Milan Tomic
> It sounds like you possibly want to configure a balancer, maybe a > hot-standby. You might want to look at implementing the ProxyPass > 'ping' parameter for checking for hung or busy Tomcats. Sample > balancer config, etc. is all in the docs:- > http://httpd.apache.org/docs/2.2/mod/mod_proxy.

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Philip Wigg
> Thank you very much for your help. My problem is that one Tomcat runs out of > resources and then HTTPD also stop forwarding requests to other Tomcats. I'm > using only ProxyPass, without JkMount: > > ProxyPass /Context1 ajp://localhost:8008/Context1 > ProxyPass /Context2 ajp://localhost:8009/C

[us...@httpd] ssl_error_handshake_failure_alert - client error page

2010-03-11 Thread acastanheira2001
Hi, I´ve setup a virtualhost that requires client certificate, and it works fine. But, if the client doesn´t have the cert, or the cert doesn´t match the conditions I´ve specified, the client browser returns a page with the "ssl_error_handshake_failure_alert" error. I would like to return a fr

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Milan Tomic
Phil, Thank you very much for your help. My problem is that one Tomcat runs out of resources and then HTTPD also stop forwarding requests to other Tomcats. I'm using only ProxyPass, without JkMount: ProxyPass /Context1 ajp://localhost:8008/Context1 ProxyPass /Context2 ajp://localhost:8009/Cont

Re: [us...@httpd] How can I configure setting a Header in httpd.conf based on content type?

2010-03-11 Thread Baljeet Nijjhar
Ah thanks, that would explain it as yes, it's a proxy. On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans wrote: > On Thu, Mar 11, 2010 at 11:51 AM, Baljeet Nijjhar > wrote: > > In fact, FilesMatch doesnt seem to work for anything (inlcuding the > string > > you sent for images etc). I'm using my HTTP

Re: [us...@httpd] How can I configure setting a Header in httpd.conf based on content type?

2010-03-11 Thread Tom Evans
On Thu, Mar 11, 2010 at 11:51 AM, Baljeet Nijjhar wrote: > In fact, FilesMatch doesnt seem to work for anything (inlcuding the string > you sent for images etc). I'm using my HTTP server as a proxy server. I > wonder if I need to do something with Directory as well ... > Right now, I'm feeling lik

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Philip Wigg
On 11 March 2010 11:28, Milan Tomic wrote: > > I have in my htpd.conf: > > > ProxyPass /Context1 ajp://localhost:8008/Context1 > ProxyPass /Context2 ajp://localhost:8008/Context2 > > > if I say: > > JkMount /Context1 worker1 > JkMount /Context2 worker2 > > Is this OK? This means /Context1 will b

Re: [us...@httpd] How can I configure setting a Header in httpd.conf based on content type?

2010-03-11 Thread Baljeet Nijjhar
In fact, FilesMatch doesnt seem to work for anything (inlcuding the string you sent for images etc). I'm using my HTTP server as a proxy server. I wonder if I need to do something with Directory as well ... Right now, I'm feeling like the only solution is to set them up in my application code using

Re: [us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Milan Tomic
I have in my htpd.conf: ProxyPass /Context1 ajp://localhost:8008/Context1 ProxyPass /Context2 ajp://localhost:8008/Context2 if I say: JkMount /Context1 worker1 JkMount /Context2 worker2 Is this OK? This means /Context1 will be served my worker1 and /Context2 will be served my worker2? I can

Re: [us...@httpd] How can I configure setting a Header in httpd.conf based on content type?

2010-03-11 Thread Baljeet Nijjhar
i.e. if I do ExpiresByType application/msword "access plus 5 seconds" it doesn't actually work. Nor does On Thu, Mar 11, 2010 at 11:09 AM, Baljeet Nijjhar < baljeet.nijj...@googlemail.com> wrote: > Hi > That works when distinguishing between html and images. However, I suspect > my problem is

Re: [us...@httpd] How can I configure setting a Header in httpd.conf based on content type?

2010-03-11 Thread Baljeet Nijjhar
Hi That works when distinguishing between html and images. However, I suspect my problem is more subtle. If the page contains an attachment (content-type = application/msword for example, rather than text/html) I need to set a different cache-control header. So are FilesMatch and ExpiresByType look

[us...@httpd] Worker inside ProxyPass

2010-03-11 Thread Milan Tomic
Hi, Some help needed here... Is it possible somehow to specify which worker will be used by which context specified with ProxyPass directive? Thank you in advance, Milan - The official User-To-User support forum of t

Re: [us...@httpd] Multiple Apache 2.2.8 installation on same redhat server, Error httpd (pid 3996) already running

2010-03-11 Thread Jeff Hefner
This is probably what you are looking for: http://httpd.apache.org/docs/2.2/mod/mpm_common.html#pidfile Like a previous poster said both are probably pointed to the same pid file. jeff On Thu, Mar 11, 2010 at 12:14 AM, Pramod Kumar wrote: > I have successfuly installed apache in different loc

RE: [us...@httpd] Multiple Apache 2.2.8 installation on same redhat server, Error httpd (pid 3996) already running

2010-03-11 Thread Pramod Kumar
Dear Nilesh On startup the pid of the already runnig apache installation is shown. for this i couldnot start the new installation. How do i make the new installtion look for new pid. Is there any way the pid file could be changed. In 2.2.8 its not from the httpd.conf. Regards, PRAMOD

Re: [us...@httpd] Re: apache httpd server 2.3.5 alpha configure fail,help

2010-03-11 Thread 夏蒸鑫
here is the output message on console: [r...@wall httpd-alpha]# ./configure --prefix=/usr/local/apache2 --enable-v4-mapped --enable-maintainer-mode --enable-file-cache --enable-cache --enable-disk-cache --enable-so --enable-echo --enable-charset-lite --enable-mime-magic --enable-expires --enable-h

RE: [us...@httpd] Multiple Apache 2.2.8 installation on same redhat server, Error httpd (pid 3996) already running

2010-03-11 Thread Pramod Kumar
How to change the pid file. I have not done anything related to the pid file. How to configure for a different pid file Regards, PRAMOD KUMAR > From: li...@itech7.com > Date: Thu, 11 Mar 2010 12:02:16 +0530 > To: users@httpd.apache.org > Subject: Re: [us...@httpd] Multiple Apache 2.2.8 i

Re: [us...@httpd] Re: apache httpd server 2.3.5 alpha configure fail,help

2010-03-11 Thread 夏蒸鑫
hi,sorry for my disturbing. i compile it on Centos this is my step: wget http://www.apache.org/dist/httpd/httpd-2.3.5-alpha.tar.bz2 wget http://www.apache.org/dist/httpd/httpd-2.3.5-alpha-deps.tar.bz2 tar -xjf httpd*.bz2 cd httpd* ./configure --prefix=/usr/local/apache2 --enable-v4-mapped --enab