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
>>>
>>>
>>>   
>>>     
>>>       
>>
>>   
>>     
>
>
>
>   

Reply via email to