In and all it sounds as if I would like to implement rewrite rule I will
need to install Apache httpd in front of the Ofbiz Tomcat, does that sound
correct?


-----Original Message-----
From: Christopher Snow [mailto:[email protected]] 
Sent: Monday, December 07, 2009 12:37 PM
To: [email protected]
Subject: Re: Apache Mod Rewrite Rules

I don't think you can add rewrite rules to tomcat..

If you do decide to use apache httpd, I would thoroughly recommend 
reading the apache httpd documentation as mis-configuring can lead to 
security holes.

Cheers,

Chris

Len Shein wrote:
> How can I add rewrite rules to the Tomcat which is embedded in Ofbiz?
>
> Do I need Apache to do this?
>
> Thanks in advance
>
> Len
>
> -----Original Message-----
> From: Raj Saini [mailto:[email protected]] 
> Sent: Monday, December 07, 2009 12:04 PM
> To: [email protected]
> Subject: Re: Apache Mod Rewrite Rules
>
> You dont need the Apache web server if your setup is really not that 
> complex. Tomcat is embedded in the OFbiz and you can simply change the 
> ports (from 8080 to 80 and 8443 to 443) in ofbiz-containers.xml file. If 
> you are running already a Apache HTTPD and cant use the port 80 in 
> OFBiz, I would suggest you to use AJP/Proxy. It is simple to configure. 
> You can search mail archives and wiki to get some pointers. There is 
> also documentation on Apache HTTPD site.
>
> Be careful about ProxyPassReverse as it is bit tricky. Have a look on my 
> blogs on how to use ProxyPassReverseCookiesPath and ProxyPassReverse 
> directive 
>
(http://www.viithiisys.com/web/raj/blog/-/blogs/apache-proxypassreverse-dire
> ctive?_33_redirect=%252Findex.html)
>
> Thanks,
>
> Raj
>
>
>
> ||Len Shein wrote:
>   
>> No I have built an ecommerce application which is up and running in
>> development and now I would like to move it a production server.  My
>> understanding of it was Apache/Tomcat is built into ofbiz and simply
>> starting ofbiz everything is now ready.  
>>
>> I now need to add the rewrite modules..  I thought this config went into
>>     
> the
>   
>> ofbiz files somewhere which would then be picked up when ofbiz was
>> started... sounds like I was incorrect in this thinking.
>>
>> It sounds as if I now need to first install Apache for windows/Apache
>>     
> httpd
>   
>> and then deploy the app to apache?
>>
>>
>> -----Original Message-----
>> From: Christopher Snow [mailto:[email protected]] 
>> Sent: Monday, December 07, 2009 11:37 AM
>> To: [email protected]
>> Subject: Re: Apache Mod Rewrite Rules
>>
>> Hi Len,
>>
>> Are you just trying to get ofbiz up and running to try it out?  If you 
>> are just trying out ofbiz, you don't need to install apache httpd.
>>
>> Cheers,
>>
>> Chris
>>
>> Len Shein wrote:
>>   
>>     
>>> I guess I am a bit confused.  I have not installed apache httpd...  I am
>>> simply starting ofbiz on a windows server.  Do I need to first install
>>> Apache and the start ofbiz?
>>>
>>> -----Original Message-----
>>> From: Christopher Snow [mailto:[email protected]] 
>>> Sent: Monday, December 07, 2009 11:23 AM
>>> To: [email protected]
>>> Subject: Re: Apache Mod Rewrite Rules
>>>
>>> Hi Len
>>>
>>> httpd.conf is a configuration file for the apache httpd application, not

>>> for the ofbiz application.
>>>
>>> What operating system are you running?  How did you install apache
httpd?
>>>
>>> Cheers,
>>>
>>> Chris
>>>
>>> Len Shein wrote:
>>>   
>>>     
>>>       
>>>> Yes, where is the httpd.conf file located?  I do not see it within the
>>>>     
>>>>       
>>>>         
>>> Ofbiz
>>>   
>>>     
>>>       
>>>> source.  Am I missing these files?
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Christopher Snow [mailto:[email protected]] 
>>>> Sent: Monday, December 07, 2009 10:59 AM
>>>> To: [email protected]
>>>> Subject: Re: Apache Mod Rewrite Rules
>>>>
>>>> Have you seen the following?
>>>>
>>>>
>>>>     
>>>>       
>>>>         
>
http://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookb
>   
>>   
>>     
>>>   
>>>     
>>>       
>>>> ook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD
>>>>
>>>>
>>>>
>>>> Len Shein wrote:
>>>>   
>>>>     
>>>>       
>>>>         
>>>>> Yes that is exactly what I want and I am not sure how to or where to
>>>>>           
> add
>   
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>> the
>>>>   
>>>>     
>>>>       
>>>>         
>>>>> rules and in which file.
>>>>>
>>>>> Help would be greatly appreciated.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Christopher Snow [mailto:[email protected]] 
>>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>>> To: [email protected]
>>>>> Subject: Re: Apache Mod Rewrite Rules
>>>>>
>>>>> Len,
>>>>>
>>>>> What are you trying to achieve?  Are you trying to put apache httpd in

>>>>> front of tomcat?
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Chris
>>>>>
>>>>>
>>>>> Len Shein wrote:
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>>> Has anyone had any experience configuring the Apache mod proxy/mod
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>> rewrite
>>>>   
>>>>     
>>>>       
>>>>         
>>>>>> modules within ofbiz?
>>>>>>
>>>>>>  
>>>>>>
>>>>>> I am trying to run the ecommerce application on Apache/Tomcat and do
>>>>>>           
>>>>>>             
>> not
>>   
>>     
>>>>>> know where to place the rewrite rules; has anyone accomplished this?
>>>>>>
>>>>>>  
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Thank You
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Len Shein 
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Email: [email protected]
>>>>>>
>>>>>> Email: [email protected]
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Office: 516.742.7888 ext.225
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Home Office: 732.333.4303
>>>>>>
>>>>>>  
>>>>>>
>>>>>>
>>>>>>   
>>>>>>     
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>   
>>>>     
>>>>       
>>>>         
>>>   
>>>     
>>>       
>>   
>>     
>
>   


-- 
Chris Snow - CEng MBCS CITP MBA (Tech Mgmt) (Open) CISSP

Tel: 01453 890660
Mob: 07944 880950
Www: www.snowconsulting.co.uk


Reply via email to