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" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] ProxyRequests Off ProxyPreserveHost On ProxyPass / ajp://nillx22.bradgroup:8087/gmgweb #ProxyPass / ajp://localhost:8087/ RewriteEngine On RewriteRule \^/(images/.+);jsessionid=\w+$ /$1 </VirtualHost> >>> Raj Saini <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 >>> >>> >>> >>> >>> >> >> >> > > > >