Apache Mod Rewrite Rules

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Apache Mod Rewrite Rules

Len Shein
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: [hidden email]

Email: [hidden email]

 

Office: 516.742.7888 ext.225

 

Home Office: 732.333.4303

 

Reply | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Chris Snow-3
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: [hidden email]
>
> Email: [hidden email]
>
>  
>
> 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 | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
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:[hidden email]]
Sent: Monday, December 07, 2009 10:25 AM
To: [hidden email]
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: [hidden email]
>
> Email: [hidden email]
>
>  
>
> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Chris Snow-3
Have you seen the following?

http://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+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:[hidden email]]
> Sent: Monday, December 07, 2009 10:25 AM
> To: [hidden email]
> 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: [hidden email]
>>
>> Email: [hidden email]
>>
>>  
>>
>> 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 | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
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:[hidden email]]
Sent: Monday, December 07, 2009 10:59 AM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 10:25 AM
> To: [hidden email]
> 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: [hidden email]
>>
>> Email: [hidden email]
>>
>>  
>>
>> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Chris Snow-3
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:[hidden email]]
> Sent: Monday, December 07, 2009 10:59 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 10:25 AM
>> To: [hidden email]
>> 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: [hidden email]
>>>
>>> Email: [hidden email]
>>>
>>>  
>>>
>>> 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 | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
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:[hidden email]]
Sent: Monday, December 07, 2009 11:23 AM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 10:59 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 10:25 AM
>> To: [hidden email]
>> 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: [hidden email]
>>>
>>> Email: [hidden email]
>>>
>>>  
>>>
>>> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Chris Snow-3
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:[hidden email]]
> Sent: Monday, December 07, 2009 11:23 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 10:59 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 10:25 AM
>>> To: [hidden email]
>>> 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: [hidden email]
>>>>
>>>> Email: [hidden email]
>>>>
>>>>  
>>>>
>>>> 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 | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
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:[hidden email]]
Sent: Monday, December 07, 2009 11:37 AM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 11:23 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 10:59 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 10:25 AM
>>> To: [hidden email]
>>> 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: [hidden email]
>>>>
>>>> Email: [hidden email]
>>>>
>>>>  
>>>>
>>>> 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 | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
In reply to this post by Chris Snow-3
I think I might be completely off base I am running ofbiz with it's internal
Tomcat server.  I am trying to add some rewrite rules to the server so I
think in order to do this I have 2 options:

Install Apache in front of tomcat and let it rewrite and redirect
accordingly
Or
Find where the rules should be placed within the Ofbiz Tomcat server.

Is this correct?




-----Original Message-----
From: Christopher Snow [mailto:[hidden email]]
Sent: Monday, December 07, 2009 11:37 AM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 11:23 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 10:59 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 10:25 AM
>>> To: [hidden email]
>>> 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: [hidden email]
>>>>
>>>> Email: [hidden email]
>>>>
>>>>  
>>>>
>>>> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

rajsaini
In reply to this post by lshein
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-directive?_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:[hidden email]]
> Sent: Monday, December 07, 2009 11:37 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 11:23 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 10:59 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>> To: [hidden email]
>>>> 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: [hidden email]
>>>>>
>>>>> Email: [hidden email]
>>>>>
>>>>>  
>>>>>
>>>>> Office: 516.742.7888 ext.225
>>>>>
>>>>>  
>>>>>
>>>>> Home Office: 732.333.4303
>>>>>
>>>>>  
>>>>>
>>>>>
>>>>>  
>>>>>    
>>>>>      
>>>>>        
>>>>>          
>>>>  
>>>>    
>>>>      
>>>>        
>>>  
>>>    
>>>      
>>  
>>    
>
>
>  

Reply | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
No I am not already running apache httpd.  My setup is not complex I just
not sure where I need to place rewrite rules in the embedded tomcat setup.
Here are my test rules in a simple configuration where would such rules go?

Example Rules
RewriteEngine On
# Test 1 - Straight proxy test.
RewriteRule ^/test.htm$ http://helloworld.gravitystream.com/test.htm [P,L]

# Test 2 - Bot only proxy test.
RewriteCond %{HTTP_USER_AGENT}
.*(?:NSO_|Google|msnbot|Slurp|Ask\sJeeves|Inktomi|Yahoo).*
RewriteRule ^/test-for-robots.htm$
http://helloworld.gravitystream.com/test-for-robots.htm [P,L]


-----Original Message-----
From: Raj Saini [mailto:[hidden email]]
Sent: Monday, December 07, 2009 12:04 PM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 11:37 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 11:23 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 10:59 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>> To: [hidden email]
>>>> 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: [hidden email]
>>>>>
>>>>> Email: [hidden email]
>>>>>
>>>>>  
>>>>>
>>>>> Office: 516.742.7888 ext.225
>>>>>
>>>>>  
>>>>>
>>>>> Home Office: 732.333.4303
>>>>>
>>>>>  
>>>>>
>>>>>
>>>>>  
>>>>>    
>>>>>      
>>>>>        
>>>>>          
>>>>  
>>>>    
>>>>      
>>>>        
>>>  
>>>    
>>>      
>>  
>>    
>
>
>  


Reply | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

Len Shein
In reply to this post by rajsaini
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:[hidden email]]
Sent: Monday, December 07, 2009 12:04 PM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 11:37 AM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 11:23 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 10:59 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>> To: [hidden email]
>>>> 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: [hidden email]
>>>>>
>>>>> Email: [hidden email]
>>>>>
>>>>>  
>>>>>
>>>>> Office: 516.742.7888 ext.225
>>>>>
>>>>>  
>>>>>
>>>>> Home Office: 732.333.4303
>>>>>
>>>>>  
>>>>>
>>>>>
>>>>>  
>>>>>    
>>>>>      
>>>>>        
>>>>>          
>>>>  
>>>>    
>>>>      
>>>>        
>>>  
>>>    
>>>      
>>  
>>    
>
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Chris Snow-3
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:[hidden email]]
> Sent: Monday, December 07, 2009 12:04 PM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 11:37 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 11:23 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 10:59 AM
>>>> To: [hidden email]
>>>> 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:[hidden email]]
>>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>>> To: [hidden email]
>>>>> 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: [hidden email]
>>>>>>
>>>>>> Email: [hidden email]
>>>>>>
>>>>>>  
>>>>>>
>>>>>> 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 | Threaded
Open this post in threaded view
|

RE: Apache Mod Rewrite Rules

lshein
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:[hidden email]]
Sent: Monday, December 07, 2009 12:37 PM
To: [hidden email]
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:[hidden email]]
> Sent: Monday, December 07, 2009 12:04 PM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 11:37 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 11:23 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 10:59 AM
>>>> To: [hidden email]
>>>> 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:[hidden email]]
>>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>>> To: [hidden email]
>>>>> 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: [hidden email]
>>>>>>
>>>>>> Email: [hidden email]
>>>>>>
>>>>>>  
>>>>>>
>>>>>> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Chris Snow-3
IMHO yes.

Len Shein wrote:

> 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:[hidden email]]
> Sent: Monday, December 07, 2009 12:37 PM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 12:04 PM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 11:37 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 11:23 AM
>>>> To: [hidden email]
>>>> 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:[hidden email]]
>>>>> Sent: Monday, December 07, 2009 10:59 AM
>>>>> To: [hidden email]
>>>>> 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:[hidden email]]
>>>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>>>> To: [hidden email]
>>>>>> 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: [hidden email]
>>>>>>>
>>>>>>> Email: [hidden email]
>>>>>>>
>>>>>>>  
>>>>>>>
>>>>>>> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Scott Gray-2
In reply to this post by lshein
It looks like there is a filter you can use to achieve this with  
tomcat: http://tuckey.org/urlrewrite/
I have never tried it though.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 8/12/2009, at 7:25 AM, Len Shein wrote:

> 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:[hidden email]]
> Sent: Monday, December 07, 2009 12:37 PM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 12:04 PM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 11:37 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 11:23 AM
>>>> To: [hidden email]
>>>> 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:[hidden email]]
>>>>> Sent: Monday, December 07, 2009 10:59 AM
>>>>> To: [hidden email]
>>>>> 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:[hidden email]]
>>>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>>>> To: [hidden email]
>>>>>> 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: [hidden email]
>>>>>>>
>>>>>>> Email: [hidden email]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 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
>
>


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

Jeroen van der Wal-2
In reply to this post by lshein
Hi Len,

It sill puzzles me why you think you need a url rewriting. Do you want a
loadbalancer, reverse proxy or image caching? Provide us your scenario, you
don't want all the hassle that comes with url rewrite for just exposing
Ofbiz to the world.

-Jeroen


On Mon, Dec 7, 2009 at 7:25 PM, Len Shein <[hidden email]> wrote:

> 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:[hidden email]]
> Sent: Monday, December 07, 2009 12:37 PM
> To: [hidden email]
> 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:[hidden email]]
> > Sent: Monday, December 07, 2009 12:04 PM
> > To: [hidden email]
> > 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:[hidden email]]
> >> Sent: Monday, December 07, 2009 11:37 AM
> >> To: [hidden email]
> >> 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:[hidden email]]
> >>> Sent: Monday, December 07, 2009 11:23 AM
> >>> To: [hidden email]
> >>> 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:[hidden email]]
> >>>> Sent: Monday, December 07, 2009 10:59 AM
> >>>> To: [hidden email]
> >>>> 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:[hidden email]]
> >>>>> Sent: Monday, December 07, 2009 10:25 AM
> >>>>> To: [hidden email]
> >>>>> 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: [hidden email]
> >>>>>>
> >>>>>> Email: [hidden email]
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> 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 | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

rajsaini
In reply to this post by lshein
I don't think you can use these rules in OFBiz. You will need the Apache
HTTPd for this.

Thanks,

Raj

Len Shein wrote:

> No I am not already running apache httpd.  My setup is not complex I just
> not sure where I need to place rewrite rules in the embedded tomcat setup.
> Here are my test rules in a simple configuration where would such rules go?
>
> Example Rules
> RewriteEngine On
> # Test 1 - Straight proxy test.
> RewriteRule ^/test.htm$ http://helloworld.gravitystream.com/test.htm [P,L]
>
> # Test 2 - Bot only proxy test.
> RewriteCond %{HTTP_USER_AGENT}
> .*(?:NSO_|Google|msnbot|Slurp|Ask\sJeeves|Inktomi|Yahoo).*
> RewriteRule ^/test-for-robots.htm$
> http://helloworld.gravitystream.com/test-for-robots.htm [P,L]
>
>
> -----Original Message-----
> From: Raj Saini [mailto:[hidden email]]
> Sent: Monday, December 07, 2009 12:04 PM
> To: [hidden email]
> 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:[hidden email]]
>> Sent: Monday, December 07, 2009 11:37 AM
>> To: [hidden email]
>> 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:[hidden email]]
>>> Sent: Monday, December 07, 2009 11:23 AM
>>> To: [hidden email]
>>> 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:[hidden email]]
>>>> Sent: Monday, December 07, 2009 10:59 AM
>>>> To: [hidden email]
>>>> 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:[hidden email]]
>>>>> Sent: Monday, December 07, 2009 10:25 AM
>>>>> To: [hidden email]
>>>>> 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: [hidden email]
>>>>>>
>>>>>> Email: [hidden email]
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Office: 516.742.7888 ext.225
>>>>>>
>>>>>>  
>>>>>>
>>>>>> Home Office: 732.333.4303
>>>>>>
>>>>>>  
>>>>>>
>>>>>>
>>>>>>  
>>>>>>    
>>>>>>      
>>>>>>        
>>>>>>          
>>>>>>            
>>>>>  
>>>>>    
>>>>>      
>>>>>        
>>>>>          
>>>>  
>>>>    
>>>>      
>>>>        
>>>  
>>>    
>>>      
>>  
>>    
>
>
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: Apache Mod Rewrite Rules

JohnHays
In reply to this post by Jeroen van der Wal-2
CONTENTS DELETED
The author has deleted this message.
12