Hi,
I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . I'm trying to look at Apache HTTP redirect but is there an easier way? Thanks |
why not do this in the your DNS?
Robert Volke sent the following on 7/14/2008 9:20 AM: > Hi, > > I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . > I'm trying to look at Apache HTTP redirect but is there an easier way? > > Thanks > > > > |
In reply to this post by Robert Volke
There are different way of doing it:
1. Mount your application to root mount point change the http port to 80 and SSL to 443. 2. Front OFbiz server with Apache web server and use mod ajp proxy, mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy somewhere on wiki and mailing list. Thanks, Raj Robert Volke wrote: > Hi, > > I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . > I'm trying to look at Apache HTTP redirect but is there an easier way? > > Thanks > > > |
I know how to change the mount to root (in fact this is how it's setup right now), but how do I SSL to 443? In other words where is the setting?
>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> There are different way of doing it: 1. Mount your application to root mount point change the http port to 80 and SSL to 443. 2. Front OFbiz server with Apache web server and use mod ajp proxy, mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy somewhere on wiki and mailing list. Thanks, Raj Robert Volke wrote: > Hi, > > I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . > I'm trying to look at Apache HTTP redirect but is there an easier way? > > Thanks > > > |
In reply to this post by BJ Freeman
apologize.. can't do it from DNS
This is more questions that should be ask in the apache http forums. you can try <META HTTP-EQUIV="Refresh" Content="0; URL=http://server.domain:<port>/ecommerce/"> or # Use Apache module (mod_rewrite) File: httpd.conf RewriteEngine On RewriteRule /.* http://www.new-domain.com/ [R] Forwards all references in entire domain. BJ Freeman sent the following on 7/14/2008 9:29 AM: > why not do this in the your DNS? > > Robert Volke sent the following on 7/14/2008 9:20 AM: >> Hi, >> >> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >> I'm trying to look at Apache HTTP redirect but is there an easier way? >> >> Thanks >> >> >> >> > > > > |
In reply to this post by Alex Melnik
On Mon, 2008-07-14 at 11:49 -0500, Alex Melnik wrote:
> I know how to change the mount to root (in fact this is how it's setup > right now), but how do I SSL to 443? In other words where is the > setting? Hi, you have to change https-connector property in framework/base/config/ofbiz-containers.xml Also you can check url.properties and WebSite entity Regards, Bilgin Ibryam |
Administrator
|
Alex,
Did you read this : http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp Jacques From: "Bilgin Ibryam" <[hidden email]> > On Mon, 2008-07-14 at 11:49 -0500, Alex Melnik wrote: >> I know how to change the mount to root (in fact this is how it's setup >> right now), but how do I SSL to 443? In other words where is the >> setting? > > Hi, > > you have to change https-connector property in > framework/base/config/ofbiz-containers.xml > > Also you can check url.properties and WebSite entity > > Regards, > Bilgin Ibryam > |
Jacques:
I want to thank you for all the effort you put on documenting. Jacques Le Roux sent the following on 7/15/2008 4:02 AM: > Alex, > > Did you read this : > http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp > > > Jacques > > From: "Bilgin Ibryam" <[hidden email]> >> On Mon, 2008-07-14 at 11:49 -0500, Alex Melnik wrote: >>> I know how to change the mount to root (in fact this is how it's setup >>> right now), but how do I SSL to 443? In other words where is the >>> setting? >> >> Hi, >> >> you have to change https-connector property in >> framework/base/config/ofbiz-containers.xml >> >> Also you can check url.properties and WebSite entity >> >> Regards, >> Bilgin Ibryam >> > > > > |
In reply to this post by Jacques Le Roux
Wow.. this is awesome. I wish I had this link a while ago. Let me try and make the changes, but it looks like what I need is pretty well documented here.
Thanks a lot! >>> "Jacques Le Roux" <[hidden email]> 7/15/2008 6:02:56 AM >>> Alex, Did you read this : http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp Jacques From: "Bilgin Ibryam" <[hidden email]> > On Mon, 2008-07-14 at 11:49 -0500, Alex Melnik wrote: >> I know how to change the mount to root (in fact this is how it's setup >> right now), but how do I SSL to 443? In other words where is the >> setting? > > Hi, > > you have to change https-connector property in > framework/base/config/ofbiz-containers.xml > > Also you can check url.properties and WebSite entity > > Regards, > Bilgin Ibryam > |
Administrator
|
In reply to this post by BJ Freeman
:o)
From: "BJ Freeman" <[hidden email]> > Jacques: > I want to thank you for all the effort you put on documenting. > > > Jacques Le Roux sent the following on 7/15/2008 4:02 AM: >> Alex, >> >> Did you read this : >> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp >> >> >> Jacques >> >> From: "Bilgin Ibryam" <[hidden email]> >>> On Mon, 2008-07-14 at 11:49 -0500, Alex Melnik wrote: >>>> I know how to change the mount to root (in fact this is how it's setup >>>> right now), but how do I SSL to 443? In other words where is the >>>> setting? >>> >>> Hi, >>> >>> you have to change https-connector property in >>> framework/base/config/ofbiz-containers.xml >>> >>> Also you can check url.properties and WebSite entity >>> >>> Regards, >>> Bilgin Ibryam >>> >> >> >> >> > |
In reply to this post by rajsaini
I tried option 2 and I used how-tos from the following link:
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp and the error I get is: [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he ader [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f rom (null) () Any ideas? >>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> There are different way of doing it: 1. Mount your application to root mount point change the http port to 80 and SSL to 443. 2. Front OFbiz server with Apache web server and use mod ajp proxy, mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy somewhere on wiki and mailing list. Thanks, Raj Robert Volke wrote: > Hi, > > I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . > I'm trying to look at Apache HTTP redirect but is there an easier way? > > Thanks > > > |
Alex,
Which version of Apache web server you are using? I have this working on Fedora and Ubuntu/Debian server. As far as I know, you will certainly need 2.2.x. Also double check the Tomcat AJP connector ports are same as you have configured in Apache web server. Thanks, Raj Alex Melnik wrote: > I tried option 2 and I used how-tos from the following link: > > http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp > > and the error I get is: > > [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he > ader > [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed > [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f > rom (null) () > > Any ideas? > > >>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>> > > There are different way of doing it: > > 1. Mount your application to root mount point change the http port to 80 > and SSL to 443. > 2. Front OFbiz server with Apache web server and use mod ajp proxy, > mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy > somewhere on wiki and mailing list. > > Thanks, > > Raj > Robert Volke wrote: > >> Hi, >> >> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >> I'm trying to look at Apache HTTP redirect but is there an easier way? >> >> Thanks >> >> >> >> > > > > |
Administrator
|
I confirm : an Apache HTTPD 2.2.x is needed. It works well then.
Jacques From: "Raj Saini" <[hidden email]> > Alex, > > Which version of Apache web server you are using? I have this working on Fedora and Ubuntu/Debian server. As far as I know, you > will certainly need 2.2.x. > > Also double check the Tomcat AJP connector ports are same as you have configured in Apache web server. > > Thanks, > > Raj > > Alex Melnik wrote: >> I tried option 2 and I used how-tos from the following link: >> >> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp >> and the error I get is: >> >> [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he >> ader >> [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed >> [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f >> rom (null) () >> >> Any ideas? >> >> >>>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>>> >> >> There are different way of doing it: >> >> 1. Mount your application to root mount point change the http port to 80 and SSL to 443. >> 2. Front OFbiz server with Apache web server and use mod ajp proxy, mod_jk or mod_rewrite. You can find more about mod_jk and >> mod_ajp_proxy somewhere on wiki and mailing list. >> >> Thanks, >> >> Raj >> Robert Volke wrote: >> >>> Hi, >>> >>> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in >>> www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . I'm trying to look at Apache HTTP redirect but >>> is there an easier way? >>> >>> Thanks >>> >>> >>> >> >> >> >> > |
In reply to this post by rajsaini
Raj, thanks for the help. I'm using Apache 2.2.9 My AJP configs in ofbiz-containers.xml is as follows: <property name="ajp-connector" value="connector"> <!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for reference --> <property name="allowTrace" value="false"/> <property name="emptySessionPath" value="false"/> <property name="enableLookups" value="false"/> <property name="maxPostSize" value="2097152"/> <property name="protocol" value="AJP/1.3"/> <property name="proxyName" value=""/> <property name="proxyPort" value=""/> <property name="redirectPort" value=""/> <property name="scheme" value="http"/> <property name="secure" value="false"/> <property name="URIEncoding" value="UTF-8"/> <property name="useBodyEncodingForURI" value="false"/> <property name="xpoweredBy" value="true"/> <!-- AJP/13 connector attributes --> <property name="address" value="127.0.0.1"/> <property name="backlog" value="10"/> <property name="maxSpareThreads" value="8000"/> <property name="maxThreads" value="8000"/> <property name="minSpareThreads" value="4000"/> <property name="port" value="8087"/> <property name="tcpNoDelay" value="true"/> <property name="soTimeout" value="6000"/> <property name="tomcatAuthentication" value="false"/> </property> and I'm running my app on port 8087 Do you see anything out of ordinary with this config? Thanks again, Alex >>> Raj Saini <[hidden email]> 7/21/2008 10:14 PM >>> Alex, Which version of Apache web server you are using? I have this working on Fedora and Ubuntu/Debian server. As far as I know, you will certainly need 2.2.x. Also double check the Tomcat AJP connector ports are same as you have configured in Apache web server. Thanks, Raj Alex Melnik wrote: > I tried option 2 and I used how-tos from the following link: > > http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp > > and the error I get is: > > [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he > ader > [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed > [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f > rom (null) () > > Any ideas? > > >>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>> > > There are different way of doing it: > > 1. Mount your application to root mount point change the http port to 80 > and SSL to 443. > 2. Front OFbiz server with Apache web server and use mod ajp proxy, > mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy > somewhere on wiki and mailing list. > > Thanks, > > Raj > Robert Volke wrote: > >> Hi, >> >> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >> I'm trying to look at Apache HTTP redirect but is there an easier way? >> >> Thanks >> >> >> >> > > > > |
Can you also post the relevant part of your apache configuration?
Thanks, Raj Alex Melnik wrote: > Raj, thanks for the help. > > I'm using Apache 2.2.9 > My AJP configs in ofbiz-containers.xml is as follows: > > <property name="ajp-connector" value="connector"> > <!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for reference --> > <property name="allowTrace" value="false"/> > <property name="emptySessionPath" value="false"/> > <property name="enableLookups" value="false"/> > <property name="maxPostSize" value="2097152"/> > <property name="protocol" value="AJP/1.3"/> > <property name="proxyName" value=""/> > <property name="proxyPort" value=""/> > <property name="redirectPort" value=""/> > <property name="scheme" value="http"/> > <property name="secure" value="false"/> > <property name="URIEncoding" value="UTF-8"/> > <property name="useBodyEncodingForURI" value="false"/> > <property name="xpoweredBy" value="true"/> > <!-- AJP/13 connector attributes --> > <property name="address" value="127.0.0.1"/> > <property name="backlog" value="10"/> > <property name="maxSpareThreads" value="8000"/> > <property name="maxThreads" value="8000"/> > <property name="minSpareThreads" value="4000"/> > <property name="port" value="8087"/> > <property name="tcpNoDelay" value="true"/> > <property name="soTimeout" value="6000"/> > <property name="tomcatAuthentication" value="false"/> > </property> > > and I'm running my app on port 8087 > > Do you see anything out of ordinary with this config? > > Thanks again, > Alex > >>>> Raj Saini <[hidden email]> 7/21/2008 10:14 PM >>> >>>> > > Alex, > > Which version of Apache web server you are using? I have this working on > Fedora and Ubuntu/Debian server. As far as I know, you will certainly > need 2.2.x. > > Also double check the Tomcat AJP connector ports are same as you have > configured in Apache web server. > > Thanks, > > Raj > > Alex Melnik wrote: > >> I tried option 2 and I used how-tos from the following link: >> >> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp >> >> and the error I get is: >> >> [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he >> ader >> [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed >> [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f >> rom (null) () >> >> Any ideas? >> >> >> >>>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>>> >>>>> >> There are different way of doing it: >> >> 1. Mount your application to root mount point change the http port to 80 >> and SSL to 443. >> 2. Front OFbiz server with Apache web server and use mod ajp proxy, >> mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy >> somewhere on wiki and mailing list. >> >> Thanks, >> >> Raj >> Robert Volke wrote: >> >> >>> Hi, >>> >>> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >>> I'm trying to look at Apache HTTP redirect but is there an easier way? >>> >>> Thanks >>> >>> >>> >>> >>> >> >> >> > > > > |
In reply to this post by Robert Volke
Hi,
We need some assistance configuring application connection with Apache. We followed all the instructions from: http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp The main error is: [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he ader [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f rom (null) () The debug error is: [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(45): proxy: AJP: canonicalising URL //nillx22.bradgroup:8087/gmgweb [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(1488): [client 172.16.38.101] proxy: ajp: found worker ajp://nillx22.bradgroup:8087/gmgweb for ajp://nillx22.bradgroup:8087/gmgweb [Mon Jul 21 18:03:30 2008] [debug] mod_proxy.c(966): Running scheme ajp handler (attempt 0) [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(579): proxy: AJP: serving URL ajp://nillx22.bradgroup:8087/gmgweb [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2044): proxy: AJP: has acquired connection for (nillx22.bradgroup) [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2102): proxy: connecting ajp://nillx22.bradgroup:8087/gmgweb to nillx22.bradgroup:8087 [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2195): proxy: connected /gmgweb to nillx22.bradgroup:8087 [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2347): proxy: AJP: fam 2 socket created to connect to nillx22.bradgroup [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(224): Into ajp_marshal_into_msgb [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[0] [Accept] = [image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[1] [Accept-Language] = [en-us] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[2] [UA-CPU] = [x86] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[3] [Accept-Encoding] = [gzip, deflate] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[4] [User-Agent] = [Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[5] [Host] = [gmob1it1as1.bradgroup] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[6] [Connection] = [Keep-Alive] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[7] [NovINet] = [v1.2] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(430): ajp_marshal_into_msgb: Done [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(239): proxy: APR_BUCKET_IS_EOS [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(244): proxy: data to read (max 8186 at 4) [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(259): proxy: got 0 bytes of data Any help you can give will be greatly appreciated. Thank you, Robert Volke >>> Raj Saini <[hidden email]> 07/14/08 11:45 AM >>> There are different way of doing it: 1. Mount your application to root mount point change the http port to 80 and SSL to 443. 2. Front OFbiz server with Apache web server and use mod ajp proxy, mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy somewhere on wiki and mailing list. Thanks, Raj Robert Volke wrote: > Hi, > > I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . > I'm trying to look at Apache HTTP redirect but is there an easier way? > > Thanks > > > |
In addition to my previous post below, I do not see port 80 or 443 configuration anywhere in the application. What is the meaning of Raj's first line?
"1. Mount your application to root mount point change the http port to 80and SSL to 443." We need to change the ports in the production servers - It won't be 80 and 443 for sure, so we need to know where to change. Any help you can give would be greatly appreciated. Thank you, Robert Volke >>> Robert Volke 7/22/2008 10:09 AM >>> Hi, We need some assistance configuring application connection with Apache. We followed all the instructions from: http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp The main error is: [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he ader [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f rom (null) () The debug error is: [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(45): proxy: AJP: canonicalising URL //nillx22.bradgroup:8087/gmgweb [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(1488): [client 172.16.38.101] proxy: ajp: found worker ajp://nillx22.bradgroup:8087/gmgweb for ajp://nillx22.bradgroup:8087/gmgweb [Mon Jul 21 18:03:30 2008] [debug] mod_proxy.c(966): Running scheme ajp handler (attempt 0) [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(579): proxy: AJP: serving URL ajp://nillx22.bradgroup:8087/gmgweb [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2044): proxy: AJP: has acquired connection for (nillx22.bradgroup) [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2102): proxy: connecting ajp://nillx22.bradgroup:8087/gmgweb to nillx22.bradgroup:8087 [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2195): proxy: connected /gmgweb to nillx22.bradgroup:8087 [Mon Jul 21 18:03:30 2008] [debug] proxy_util.c(2347): proxy: AJP: fam 2 socket created to connect to nillx22.bradgroup [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(224): Into ajp_marshal_into_msgb [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[0] [Accept] = [image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[1] [Accept-Language] = [en-us] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[2] [UA-CPU] = [x86] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[3] [Accept-Encoding] = [gzip, deflate] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[4] [User-Agent] = [Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[5] [Host] = [gmob1it1as1.bradgroup] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[6] [Connection] = [Keep-Alive] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[7] [NovINet] = [v1.2] [Mon Jul 21 18:03:30 2008] [debug] ajp_header.c(430): ajp_marshal_into_msgb: Done [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(239): proxy: APR_BUCKET_IS_EOS [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(244): proxy: data to read (max 8186 at 4) [Mon Jul 21 18:03:30 2008] [debug] mod_proxy_ajp.c(259): proxy: got 0 bytes of data Any help you can give will be greatly appreciated. Thank you, Robert Volke >>> Raj Saini <[hidden email]> 07/14/08 11:45 AM >>> There are different way of doing it: 1. Mount your application to root mount point change the http port to 80 and SSL to 443. 2. Front OFbiz server with Apache web server and use mod ajp proxy, mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy somewhere on wiki and mailing list. Thanks, Raj Robert Volke wrote: > Hi, > > I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . > I'm trying to look at Apache HTTP redirect but is there an easier way? > > Thanks > > > |
In reply to this post by rajsaini
Here it is:
Listen 80 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule ssl_module modules/mod_ssl.so LoadModule rewrite_module modules/mod_rewrite.so #ThreadLimit 600 #<IfModule worker.c> StartServers 40 MaxClients 256 ServerLimit 256 #MinSpareThreads 1000 #MaxSpareThreads 2000 #ThreadsPerChild 600 MaxRequestsPerChild 10 ListenBackLog 3000 #</IfModule> MaxRequestsPerChild 10 ProxyRequests Off #ProxyTimeOut 180 <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off \| On \| Full \| Block ProxyVia On NameVirtualHost *:80 <VirtualHost *:80> # General setup for the virtual host DocumentRoot "/usr/local/apache229/htdocs" ErrorLog logs/error_log TransferLog logs/access_log ServerName gmob1it1as1.bradgroup ServerAdmin [hidden email] ProxyRequests Off ProxyPreserveHost On ProxyPass / ajp://nillx22.bradgroup:8087/gmgweb #ProxyPass / ajp://localhost:8087/ RewriteEngine On RewriteRule \^/(images/.+);jsessionid=\w+$ /$1 </VirtualHost> >>> Raj Saini <[hidden email]> 7/22/2008 9:25 AM >>> Can you also post the relevant part of your apache configuration? Thanks, Raj Alex Melnik wrote: > Raj, thanks for the help. > > I'm using Apache 2.2.9 > My AJP configs in ofbiz-containers.xml is as follows: > > <property name="ajp-connector" value="connector"> > <!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for reference --> > <property name="allowTrace" value="false"/> > <property name="emptySessionPath" value="false"/> > <property name="enableLookups" value="false"/> > <property name="maxPostSize" value="2097152"/> > <property name="protocol" value="AJP/1.3"/> > <property name="proxyName" value=""/> > <property name="proxyPort" value=""/> > <property name="redirectPort" value=""/> > <property name="scheme" value="http"/> > <property name="secure" value="false"/> > <property name="URIEncoding" value="UTF-8"/> > <property name="useBodyEncodingForURI" value="false"/> > <property name="xpoweredBy" value="true"/> > <!-- AJP/13 connector attributes --> > <property name="address" value="127.0.0.1"/> > <property name="backlog" value="10"/> > <property name="maxSpareThreads" value="8000"/> > <property name="maxThreads" value="8000"/> > <property name="minSpareThreads" value="4000"/> > <property name="port" value="8087"/> > <property name="tcpNoDelay" value="true"/> > <property name="soTimeout" value="6000"/> > <property name="tomcatAuthentication" value="false"/> > </property> > > and I'm running my app on port 8087 > > Do you see anything out of ordinary with this config? > > Thanks again, > Alex > >>>> Raj Saini <[hidden email]> 7/21/2008 10:14 PM >>> >>>> > > Alex, > > Which version of Apache web server you are using? I have this working on > Fedora and Ubuntu/Debian server. As far as I know, you will certainly > need 2.2.x. > > Also double check the Tomcat AJP connector ports are same as you have > configured in Apache web server. > > Thanks, > > Raj > > Alex Melnik wrote: > >> I tried option 2 and I used how-tos from the following link: >> >> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp >> >> and the error I get is: >> >> [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he >> ader >> [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed >> [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f >> rom (null) () >> >> Any ideas? >> >> >> >>>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>>> >>>>> >> There are different way of doing it: >> >> 1. Mount your application to root mount point change the http port to 80 >> and SSL to 443. >> 2. Front OFbiz server with Apache web server and use mod ajp proxy, >> mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy >> somewhere on wiki and mailing list. >> >> Thanks, >> >> Raj >> Robert Volke wrote: >> >> >>> Hi, >>> >>> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >>> I'm trying to look at Apache HTTP redirect but is there an easier way? >>> >>> Thanks >>> >>> >>> >>> >>> >> >> >> > > > > |
Also here is the debug level logging for one request(it seems to wait for quiet a while before it spits "Service Temporary Unavailable" on the browser. It looks like apache can't get response from ofbiz, but I'm just not sure where is the setting that I need to change.
[Tue Jul 22 14:52:20 2008] [debug] mod_proxy_ajp.c(45): proxy: AJP: canonicalising URL //nillx22.bradgroup:8087/gmgweb [Tue Jul 22 14:52:20 2008] [debug] proxy_util.c(1488): [client 172.16.38.145] proxy: ajp: found worker ajp://nillx22.bradgroup:8087/gmgweb for ajp://nillx22.bradgroup:8087/gmgweb [Tue Jul 22 14:52:20 2008] [debug] mod_proxy.c(966): Running scheme ajp handler (attempt 0) [Tue Jul 22 14:52:20 2008] [debug] mod_proxy_ajp.c(579): proxy: AJP: serving URL ajp://nillx22.bradgroup:8087/gmgweb [Tue Jul 22 14:52:20 2008] [debug] proxy_util.c(2044): proxy: AJP: has acquired connection for (nillx22.bradgroup) [Tue Jul 22 14:52:20 2008] [debug] proxy_util.c(2102): proxy: connecting ajp://nillx22.bradgroup:8087/gmgweb to nillx22.bradgroup:8087 [Tue Jul 22 14:52:20 2008] [debug] proxy_util.c(2195): proxy: connected /gmgweb to nillx22.bradgroup:8087 [Tue Jul 22 14:52:20 2008] [debug] proxy_util.c(2347): proxy: AJP: fam 2 socket created to connect to nillx22.bradgroup [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(224): Into ajp_marshal_into_msgb [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[0] [Accept] = [image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[1] [Accept-Language] = [en-us] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[2] [UA-CPU] = [x86] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[3] [Accept-Encoding] = [gzip, deflate] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[4] [User-Agent] = [Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[5] [Host] = [gmob1it1as1.bradgroup] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[6] [Connection] = [Keep-Alive] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[7] [NovINet] = [v1.2] [Tue Jul 22 14:52:20 2008] [debug] ajp_header.c(430): ajp_marshal_into_msgb: Done [Tue Jul 22 14:52:20 2008] [debug] mod_proxy_ajp.c(239): proxy: APR_BUCKET_IS_EOS [Tue Jul 22 14:52:20 2008] [debug] mod_proxy_ajp.c(244): proxy: data to read (max 8186 at 4) [Tue Jul 22 14:52:20 2008] [debug] mod_proxy_ajp.c(259): proxy: got 0 bytes of data [Tue Jul 22 14:57:20 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header [Tue Jul 22 14:57:20 2008] [error] ajp_read_header: ajp_ilink_receive failed [Tue Jul 22 14:57:20 2008] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (nillx22.bradgroup) [Tue Jul 22 14:57:20 2008] [debug] proxy_util.c(2062): proxy: AJP: has released connection for (nillx22.bradgroup) [Tue Jul 22 14:57:20 2008] [debug] mod_proxy_ajp.c(45): proxy: AJP: canonicalising URL //nillx22.bradgroup:8087/gmgwebfavicon.ico [Tue Jul 22 14:57:20 2008] [debug] proxy_util.c(1488): [client 172.16.38.145] proxy: ajp: found worker ajp://nillx22.bradgroup:8087/gmgweb for ajp://nillx22.bradgroup:8087/gmgwebfavicon.ico [Tue Jul 22 14:57:20 2008] [debug] mod_proxy.c(966): Running scheme ajp handler (attempt 0) [Tue Jul 22 14:57:20 2008] [debug] mod_proxy_ajp.c(579): proxy: AJP: serving URL ajp://nillx22.bradgroup:8087/gmgwebfavicon.ico [Tue Jul 22 14:57:20 2008] [debug] proxy_util.c(2044): proxy: AJP: has acquired connection for (nillx22.bradgroup) [Tue Jul 22 14:57:20 2008] [debug] proxy_util.c(2102): proxy: connecting ajp://nillx22.bradgroup:8087/gmgwebfavicon.ico to nillx22.bradgroup:8087 [Tue Jul 22 14:57:20 2008] [debug] proxy_util.c(2195): proxy: connected /gmgwebfavicon.ico to nillx22.bradgroup:8087 [Tue Jul 22 14:57:20 2008] [debug] proxy_util.c(2347): proxy: AJP: fam 2 socket created to connect to nillx22.bradgroup [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(224): Into ajp_marshal_into_msgb [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[0] [Accept] = [*/*] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[1] [UA-CPU] = [x86] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[2] [Accept-Encoding] = [gzip, deflate] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[3] [User-Agent] = [Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[4] [Host] = [gmob1it1as1.bradgroup] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[5] [Connection] = [Keep-Alive] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(290): ajp_marshal_into_msgb: Header[6] [NovINet] = [v1.2] [Tue Jul 22 14:57:20 2008] [debug] ajp_header.c(430): ajp_marshal_into_msgb: Done [Tue Jul 22 14:57:20 2008] [debug] mod_proxy_ajp.c(239): proxy: APR_BUCKET_IS_EOS [Tue Jul 22 14:57:20 2008] [debug] mod_proxy_ajp.c(244): proxy: data to read (max 8186 at 4) [Tue Jul 22 14:57:20 2008] [debug] mod_proxy_ajp.c(259): proxy: got 0 bytes of data >>> "Alex Melnik" <[hidden email]> 7/22/2008 11:31:49 AM >>> Here it is: Listen 80 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule ssl_module modules/mod_ssl.so LoadModule rewrite_module modules/mod_rewrite.so #ThreadLimit 600 #<IfModule worker.c> StartServers 40 MaxClients 256 ServerLimit 256 #MinSpareThreads 1000 #MaxSpareThreads 2000 #ThreadsPerChild 600 MaxRequestsPerChild 10 ListenBackLog 3000 #</IfModule> MaxRequestsPerChild 10 ProxyRequests Off #ProxyTimeOut 180 <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off \| On \| Full \| Block ProxyVia On NameVirtualHost *:80 <VirtualHost *:80> # General setup for the virtual host DocumentRoot "/usr/local/apache229/htdocs" ErrorLog logs/error_log TransferLog logs/access_log ServerName gmob1it1as1.bradgroup ServerAdmin [hidden email] ProxyRequests Off ProxyPreserveHost On ProxyPass / ajp://nillx22.bradgroup:8087/gmgweb #ProxyPass / ajp://localhost:8087/ RewriteEngine On RewriteRule \^/(images/.+);jsessionid=\w+$ /$1 </VirtualHost> >>> Raj Saini <[hidden email]> 7/22/2008 9:25 AM >>> Can you also post the relevant part of your apache configuration? Thanks, Raj Alex Melnik wrote: > Raj, thanks for the help. > > I'm using Apache 2.2.9 > My AJP configs in ofbiz-containers.xml is as follows: > > <property name="ajp-connector" value="connector"> > <!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for reference --> > <property name="allowTrace" value="false"/> > <property name="emptySessionPath" value="false"/> > <property name="enableLookups" value="false"/> > <property name="maxPostSize" value="2097152"/> > <property name="protocol" value="AJP/1.3"/> > <property name="proxyName" value=""/> > <property name="proxyPort" value=""/> > <property name="redirectPort" value=""/> > <property name="scheme" value="http"/> > <property name="secure" value="false"/> > <property name="URIEncoding" value="UTF-8"/> > <property name="useBodyEncodingForURI" value="false"/> > <property name="xpoweredBy" value="true"/> > <!-- AJP/13 connector attributes --> > <property name="address" value="127.0.0.1"/> > <property name="backlog" value="10"/> > <property name="maxSpareThreads" value="8000"/> > <property name="maxThreads" value="8000"/> > <property name="minSpareThreads" value="4000"/> > <property name="port" value="8087"/> > <property name="tcpNoDelay" value="true"/> > <property name="soTimeout" value="6000"/> > <property name="tomcatAuthentication" value="false"/> > </property> > > and I'm running my app on port 8087 > > Do you see anything out of ordinary with this config? > > Thanks again, > Alex > >>>> Raj Saini <[hidden email]> 7/21/2008 10:14 PM >>> >>>> > > Alex, > > Which version of Apache web server you are using? I have this working on > Fedora and Ubuntu/Debian server. As far as I know, you will certainly > need 2.2.x. > > Also double check the Tomcat AJP connector ports are same as you have > configured in Apache web server. > > Thanks, > > Raj > > Alex Melnik wrote: > >> I tried option 2 and I used how-tos from the following link: >> >> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp >> >> and the error I get is: >> >> [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he >> ader >> [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed >> [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f >> rom (null) () >> >> Any ideas? >> >> >> >>>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>>> >>>>> >> There are different way of doing it: >> >> 1. Mount your application to root mount point change the http port to 80 >> and SSL to 443. >> 2. Front OFbiz server with Apache web server and use mod ajp proxy, >> mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy >> somewhere on wiki and mailing list. >> >> Thanks, >> >> Raj >> Robert Volke wrote: >> >> >>> Hi, >>> >>> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >>> I'm trying to look at Apache HTTP redirect but is there an easier way? >>> >>> Thanks >>> >>> >>> >>> >>> >> >> >> > > > > |
In reply to this post by Alex Melnik
Alex,
Not sure if this is the cause but I am just wondering why are you now mapping the proxyPass to the root of AJP server (OFBiz). Your proxyPass line should be: ProxyPass / ajp://localhost:8087/ I don't see any other problem in your Apache web server configuration. You can also check if your AJP port is listening at 8087 using nestat command. Thanks, Raj Alex Melnik wrote: > Here it is: > > Listen 80 > > > LoadModule proxy_module modules/mod_proxy.so > LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > LoadModule ssl_module modules/mod_ssl.so > LoadModule rewrite_module modules/mod_rewrite.so > > > > #ThreadLimit 600 > #<IfModule worker.c> > StartServers 40 > MaxClients 256 > ServerLimit 256 > #MinSpareThreads 1000 > #MaxSpareThreads 2000 > #ThreadsPerChild 600 > MaxRequestsPerChild 10 > ListenBackLog 3000 > #</IfModule> > MaxRequestsPerChild 10 > > ProxyRequests Off > > #ProxyTimeOut 180 > <Proxy *> > AddDefaultCharset Off > Order deny,allow > Allow from all > </Proxy> > > # Enable/disable the handling of HTTP/1.1 "Via:" headers. > # ("Full" adds the server version; "Block" removes all outgoing Via: headers) > # Set to one of: Off \| On \| Full \| Block > ProxyVia On > > NameVirtualHost *:80 > > <VirtualHost *:80> > # General setup for the virtual host > DocumentRoot "/usr/local/apache229/htdocs" > ErrorLog logs/error_log > TransferLog logs/access_log > > ServerName gmob1it1as1.bradgroup > ServerAdmin [hidden email] > > ProxyRequests Off > ProxyPreserveHost On > ProxyPass / ajp://nillx22.bradgroup:8087/gmgweb > > #ProxyPass / ajp://localhost:8087/ > > RewriteEngine On > RewriteRule \^/(images/.+);jsessionid=\w+$ /$1 > > </VirtualHost> > > > >>>> Raj Saini <[hidden email]> 7/22/2008 9:25 AM >>> >>>> > > Can you also post the relevant part of your apache configuration? > > Thanks, > > Raj > > Alex Melnik wrote: > >> Raj, thanks for the help. >> >> I'm using Apache 2.2.9 >> My AJP configs in ofbiz-containers.xml is as follows: >> >> <property name="ajp-connector" value="connector"> >> <!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for reference --> >> <property name="allowTrace" value="false"/> >> <property name="emptySessionPath" value="false"/> >> <property name="enableLookups" value="false"/> >> <property name="maxPostSize" value="2097152"/> >> <property name="protocol" value="AJP/1.3"/> >> <property name="proxyName" value=""/> >> <property name="proxyPort" value=""/> >> <property name="redirectPort" value=""/> >> <property name="scheme" value="http"/> >> <property name="secure" value="false"/> >> <property name="URIEncoding" value="UTF-8"/> >> <property name="useBodyEncodingForURI" value="false"/> >> <property name="xpoweredBy" value="true"/> >> <!-- AJP/13 connector attributes --> >> <property name="address" value="127.0.0.1"/> >> <property name="backlog" value="10"/> >> <property name="maxSpareThreads" value="8000"/> >> <property name="maxThreads" value="8000"/> >> <property name="minSpareThreads" value="4000"/> >> <property name="port" value="8087"/> >> <property name="tcpNoDelay" value="true"/> >> <property name="soTimeout" value="6000"/> >> <property name="tomcatAuthentication" value="false"/> >> </property> >> >> and I'm running my app on port 8087 >> >> Do you see anything out of ordinary with this config? >> >> Thanks again, >> Alex >> >> >>>>> Raj Saini <[hidden email]> 7/21/2008 10:14 PM >>> >>>>> >>>>> >> Alex, >> >> Which version of Apache web server you are using? I have this working on >> Fedora and Ubuntu/Debian server. As far as I know, you will certainly >> need 2.2.x. >> >> Also double check the Tomcat AJP connector ports are same as you have >> configured in Apache web server. >> >> Thanks, >> >> Raj >> >> Alex Melnik wrote: >> >> >>> I tried option 2 and I used how-tos from the following link: >>> >>> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Howtousemodproxyajp >>> >>> and the error I get is: >>> >>> [Mon Jul 21 16:40:30 2008] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive he >>> ader >>> [Mon Jul 21 16:40:30 2008] [error] ajp_read_header: ajp_ilink_receive failed >>> [Mon Jul 21 16:40:30 2008] [error] (120006)APR does not understand this error code: proxy: read response failed f >>> rom (null) () >>> >>> Any ideas? >>> >>> >>> >>> >>>>>> Raj Saini <[hidden email]> 7/14/2008 11:45:23 AM >>> >>>>>> >>>>>> >>>>>> >>> There are different way of doing it: >>> >>> 1. Mount your application to root mount point change the http port to 80 >>> and SSL to 443. >>> 2. Front OFbiz server with Apache web server and use mod ajp proxy, >>> mod_jk or mod_rewrite. You can find more about mod_jk and mod_ajp_proxy >>> somewhere on wiki and mailing list. >>> >>> Thanks, >>> >>> Raj >>> Robert Volke wrote: >>> >>> >>> >>>> Hi, >>>> >>>> I'm trying to redirect the url for my ecommerce application. So what I need to make happend is when somebody types in www.sitename.com it should redirect to http://server.domain:<port>/ecommerce . >>>> I'm trying to look at Apache HTTP redirect but is there an easier way? >>>> >>>> Thanks >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > |
Free forum by Nabble | Edit this page |