There are a couple of ways to do it, each of which requires you to really
know apache the AJP module:

On a running ofbiz system, there is this "runtime" directory:

ls /opt/ofbiz.1104/runtime/catalina/work/default-server/0.0.0.0#

accounting  bizznesstime  droppingcrumbs  example googlecheckout multiflex
ordermgr tempfiles workeffort ap bluelight     ebay exampleext  hhfacility
myportal osafe_theme  tomahawk  ar catalog ebaystore facility humanres
oagis partymgr   assetmaint cmssite ecommerce flatgrey iCalendar
manufacturing  ofbiz projectmgr webpos content images marketing
 ofbizsetup  webslinge birt googlebase  ismgr  minimal  sfa webtools

These are all reserved paths that ofbiz creates when started, so you can
create a bunch of <Location>...</Location> tags for each of the above
--or-- you can also just use: (with out /Location tags).

proxyPass /catalog ajp://127.0.0.1:8009/catalog
proxyPass /cmssite ajp://127.0.0.1:8009/cmssite
proxyPass /content ajp://127.0.0.1:8009/content

However, just looking at the shear amount of mount points that ofbiz
exposes by default it is crazy to expose all of them on the internet.  You
can probably lock down the external facing mounts that you really need
(like /ecommerce) and just access the backend via a direct connection to
port 8080/8443, only from your LAN.

On Sat, Mar 9, 2013 at 4:10 AM, Ted Byers <[email protected]> wrote:

> Thanks,
>
> But ....
>
> On Fri, Mar 8, 2013 at 10:38 PM, Mike <[email protected]> wrote:
> >
> https://cwiki.apache.org/OFBIZ/faq-tips-tricks-cookbook-howto.html#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD
> >
> > But you would do something like this:
> >
> > <Location /ecommerce/>
> >         proxyPass ajp://127.0.0.1:8009/ecommerce/
> >  </Location>
> >  <Location /images/>
> >        proxyPass ajp://127.0.0.1:8009/images/
> >  </Location>
> >  <Location /content/>
> >         proxyPass ajp://127.0.0.1:8009/content/
> >  </Location>
> >
> > You just have to make sure anything ofbiz-specific is short-circuited to
> > ajp://
> >
> > This also pretty much disables accessing the backend (/webtools/, etc.)
> as
> > well.
> >
>
> What would I need to do to ensure that the backend remains usable?
> For my situation, I need both the ecommerce support and the webtools.
>
> Thanks
>
> Ted
>

Reply via email to