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:rajsa...@gmail.com] Sent: Monday, December 07, 2009 12:04 PM
To: user@ofbiz.apache.org
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:sno...@snowconsulting.co.uk] Sent: Monday, December 07, 2009 11:37 AM
To: user@ofbiz.apache.org
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:sno...@snowconsulting.co.uk] Sent: Monday, December 07, 2009 11:23 AM
To: user@ofbiz.apache.org
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:sno...@snowconsulting.co.uk] Sent: Monday, December 07, 2009 10:59 AM
To: user@ofbiz.apache.org
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:sno...@snowconsulting.co.uk] Sent: Monday, December 07, 2009 10:25 AM
To: user@ofbiz.apache.org
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: lsh...@salmonllc.com

Email: lsh...@verizon.net

Office: 516.742.7888 ext.225

Home Office: 732.333.4303






Reply via email to