0

As we know the default web URL for ofbiz is likely "https://localhost:8443/ecommerce/control/main". However when we move to production
we will only need to show "www.mydomain.com for the first page, how to config? if we use Tomcat we can config in server.xml, however we cannot find this file in Ofbiz since it integrated with tomcat, Please help, thank a lot.

Donald
  • 1

1 Answers1

2

You will need to change the settings at the domain server as well as OFBiz end.

Please refer this doc for production related settings.

You can change the URL related properties in framework/webapp/config/url.properties

You can change the Tomcat server settings in framework/catalina/ofbiz-component.xml

You can also use Apache OFBiz user mailing list for such queries.

HTH

Aditya Sharma
  • 645
  • 1
  • 10
  • 28
  • Thanks a lot, with your advice, after setting 80 and 443 port in framework/webapp/config/url.properties & framework/catalina/ofbiz-component.xml, I successfully remove the port. and by setting mount-point="/ecommerce" to specialpurpose/ecommerce/ofbiz-component.xml in specialpurpose/ecommerce/ofbiz-component.xml, finally I can get this https://localhost:8443/control/main. My question is how to remove control/main, thanks again. – Donald Mar 12 '19 at 13:25
  • You can change it in ecommerce/webapp/ecommerce/WEB-INF/web.xml file by changing ControlServlet and redirectPath values. – Aditya Sharma Mar 13 '19 at 04:27
  • Can you kindly help how to change it, thanks. allowedPaths /error:/control:/products:/select:/index.html:/index.jsp:/robots.txt:/default.html:/default.jsp:/images redirectPath /control/main ControlServlet /control/* – Donald Mar 15 '19 at 01:34
  • Change ControlServlet value to /* and redirectPath to /main – Aditya Sharma Mar 18 '19 at 09:27
  • Thanks a lots, I find another issue when i follow you direction, that's the subpage(product detailed page) can not be open, it always direct to the main page, how to fix it, thanks again. – Donald Mar 29 '19 at 03:17