Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 58679 invoked from network); 21 Nov 2008 06:21:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2008 06:21:37 -0000 Received: (qmail 63142 invoked by uid 500); 21 Nov 2008 06:21:34 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 63130 invoked by uid 500); 21 Nov 2008 06:21:34 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 63119 invoked by uid 99); 21 Nov 2008 06:21:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2008 22:21:34 -0800 X-ASF-Spam-Status: No, hits=3.9 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of josvasanth@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0708.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 06:20:11 +0000 Received: by rv-out-0708.google.com with SMTP id c5so790585rvf.24 for ; Thu, 20 Nov 2008 22:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=Tbz1ONDAMndaMj5rRYm4mGAQMl5XnowQzfBbmwCKlug=; b=TeIwDQEekfCLyr8oLQ3WKof65xE6hHsET1tXl2k/1aFSlmTiBjhXOqyqOlpnci2I3E VfeG+RNsYQhQswUT52yaSjoP00IE1rkVV24lsPsbgTm0aN9cgNG+XeIrKwNCzgTj0GS9 we2MaHU90rdeVo5lgz7y1HxWc/KKpwyMc7/sQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=oafOkINKgRq+ER4WitmODIl0EEYiteDAkaCJ+VsMmB1bmxYxodYq+AEDjd17UJYxTD Dw0saLJnAZBxuO7S5u8Y6I8ODBXyrg9WfZrTwnguNmnVGjreMuZ4hg2qVCYa8cDF4do/ 4sQ0trWpdIwCLLJFGWa0dSmMmUc1fLPvs0ZJE= Received: by 10.141.168.16 with SMTP id v16mr113433rvo.147.1227248446662; Thu, 20 Nov 2008 22:20:46 -0800 (PST) Received: by 10.140.174.5 with HTTP; Thu, 20 Nov 2008 22:20:46 -0800 (PST) Message-ID: <2b82472c0811202220t5b6fc9b4g5fb7346036413465@mail.gmail.com> Date: Fri, 21 Nov 2008 14:20:46 +0800 From: "Vasanth Kumar ravi" To: users@httpd.apache.org In-Reply-To: <20593791.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_89317_7103290.1227248446654" References: <20593791.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_proxy_ajp ------=_Part_89317_7103290.1227248446654 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I think you need to specify the virtual hosts. When I was trying to proxy requests to my app server , I got the same problem and got it fixed after modfying the VH. NameVirtualHost *:80 DocumentRoot " ServerName :80 ServerAlias localhost DocumentRoot "$1 [R,NC] ErrorLog /home/apache/logs/error.log CustomLog /home/apache/logs/access.log combined LogLevel debug On Thu, Nov 20, 2008 at 10:12 AM, biju.blore wrote: > > Hi > > I am facing an issue with apache-jboss AJP connectivity. I am mentioning > my settings below > > I am using mod_proxy_ajp.so in my Apache "proxy_ajp.conf" > The configuration of proxypass is as follows > > ProxyPassMatch ^(/publish.*) > ajp://192.168.9.11:8009/$1 timeout=600 > > JBOSS is installed in a fedora7 machine with ip 192.168.9.11 > APACHE is running in a fedora7 machine with ip 192.168.9.15 > > The URL used to browse this site is > http://testingpublish.testint.com/publish > and this will be redirected to the Jboss application hosted in > 192.168.9.11 > > I am facing a issue with this. Not all the time but at certain times > > Usually if someone tires to connect to > http://testingpublish.testint.com/publish/ this will work fine. > But sometimes it will give a 503 error. > Once this error comes I need to reload apache so as to make this site > function again. > Again after 10 hours or 12 hours (there is no exact time gap between the > apache reload and the error) > again the 503 error happens and again i need to reload the apache to > rectify > this issue. > > I check the apache error logs and found the following error. > > [Thu Nov 20 07:31:18 2008] [error] (70007)The timeout specified has > expired: > ajp_ilink_receive() can't receive header > [Thu Nov 20 07:32:18 2008] [error] (70007)The timeout specified has > expired: > ajp_ilink_receive() can't receive header > [Thu Nov 20 07:37:18 2008] [error] (70007)The timeout specified has > expired: > ajp_ilink_receive() can't receive header > > When i reload apache the site functions again perfectly. > > I am trying to fix this issues for a long time and so far no success. I am > not sure what could be wrong. > > I am using APACHE version 2.2.8 and JBOSS version "jboss-4.2.2" > > can anyone please help me to resolve this issue. > > Thanks & Regards. > Biju > > > -- > View this message in context: > http://www.nabble.com/mod_proxy_ajp-tp20593791p20593791.html > Sent from the Apache HTTP Server - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > -- Regards&Thanks, Vasanth Kumar Ravi ------=_Part_89317_7103290.1227248446654 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I think you need to specify the virtual hosts.
When I was trying to proxy requests to my app server , I got the same problem and got it fixed after modfying the VH.

NameVirtualHost *:80

<VirtualHost _default_:80>
DocumentRoot "<your doc root"
</VirtualHost>

<VirtualHost *:80>
ServerName <hostname>:80
ServerAlias localhost <hostname>
DocumentRoot "<your doc root"
DirectoryIndex index.html
RewriteRule ^/(.*) <your URL>$1 [R,NC]
ErrorLog /home/apache/logs/error.log
CustomLog /home/apache/logs/access.log combined
LogLevel debug
</VirtualHost>


On Thu, Nov 20, 2008 at 10:12 AM, biju.blore <biju.blore@gmail.com> wrote:

Hi

   I am facing an issue with apache-jboss AJP connectivity. I am mentioning
my settings below

I am using mod_proxy_ajp.so in my Apache "proxy_ajp.conf"
The configuration of proxypass is as follows

ProxyPassMatch          ^(/publish.*)
ajp://192.168.9.11:8009/$1      timeout=600

JBOSS is installed in a fedora7 machine with ip 192.168.9.11
APACHE is running in a fedora7 machine with ip 192.168.9.15

The URL used to browse this site is
http://testingpublish.testint.com/publish
and this will be redirected to the Jboss application hosted in 192.168.9.11

I am facing a issue with this. Not all the time but at certain times

Usually if someone tires to connect to
http://testingpublish.testint.com/publish/  this will work fine.
But sometimes it will give a 503 error.
Once this error comes I need to reload apache so as to make this site
function again.
Again after 10 hours or 12 hours (there is no exact time gap between the
apache reload and the error)
again the 503 error happens and again i need to reload the apache to rectify
this issue.

I check the apache error logs and found the following error.

[Thu Nov 20 07:31:18 2008] [error] (70007)The timeout specified has expired:
ajp_ilink_receive() can't receive header
[Thu Nov 20 07:32:18 2008] [error] (70007)The timeout specified has expired:
ajp_ilink_receive() can't receive header
[Thu Nov 20 07:37:18 2008] [error] (70007)The timeout specified has expired:
ajp_ilink_receive() can't receive header

When i reload apache the site functions again perfectly.

I am trying to fix this issues for a long time and so far no success. I am
not sure what could be wrong.

I am using APACHE version 2.2.8 and JBOSS version "jboss-4.2.2"

can anyone please help me to resolve this issue.

Thanks & Regards.
Biju


--
View this message in context: http://www.nabble.com/mod_proxy_ajp-tp20593791p20593791.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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-unsubscribe@httpd.apache.org
  "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




--
Regards&Thanks,
Vasanth Kumar Ravi
------=_Part_89317_7103290.1227248446654--