Hi,
Does anyone here have a complete installation guide of Ofbiz in Ubuntu? I followed the instruction here: https://www.packtpub.com/mapt/book/application_development/9781847194008/14/ ch14lvl1sec04/apache-http-server-and-ofbiz-using-mod-proxy-ajp However, it does not work. I am looking for an installation guide. Thanks, Tom Luo |
Hi Tom,
Please follow this installations guide to run OFBiz in Ubuntu. https://medium.com/viithiisys/installation-steps-of-apache-ofbiz-16-0-in-ubuntu-2edc39e9c7e2 Thanks, Satish Kumar -- Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html |
Hi, Satish,
Thanks for your answer. I can get ofbiz running at my localhost. But, I cannot get it running for my domain. Where should I insert <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />? In /etc/tomcat8/server.xml? I just cannot get it work with AJP and apache2 server. Thanks, Tom On Tue, Jul 24, 2018 at 10:48 PM, satish <[hidden email]> wrote: > Hi Tom, > Please follow this installations guide to run OFBiz in Ubuntu. > https://medium.com/viithiisys/installation-steps-of-apache- > ofbiz-16-0-in-ubuntu-2edc39e9c7e2 > > Thanks, > Satish Kumar > > > > -- > Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html > |
Administrator
|
Hi Tom,
This might help if you are using HTTPD (Apache2) https://s.apache.org/nbdk Jacques Le 25/07/2018 à 05:30, Tom Luo a écrit : > Hi, Satish, > > Thanks for your answer. I can get ofbiz running at my localhost. But, I > cannot get it running for my domain. > Where should I insert <Connector port="8009" protocol="AJP/1.3" > redirectPort="8443" />? > In /etc/tomcat8/server.xml? I just cannot get it work with AJP and apache2 > server. > > Thanks, > > Tom > > > > On Tue, Jul 24, 2018 at 10:48 PM, satish <[hidden email]> > wrote: > >> Hi Tom, >> Please follow this installations guide to run OFBiz in Ubuntu. >> https://medium.com/viithiisys/installation-steps-of-apache- >> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >> >> Thanks, >> Satish Kumar >> >> >> >> -- >> Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >> |
In reply to this post by Tom Luo
Hi Tom,
OFBiz already contains an embedded Tomcat. There is no need for an external Tomcat installation and it is not supported to run OFBiz in an external App Server. So the connector configuration is inside OFBiz, see framework/catalina/ofbiz-component.xml. Best regards, Michael Brohl ecomify GmbH www.ecomify.de Am 25.07.18 um 05:30 schrieb Tom Luo: > Hi, Satish, > > Thanks for your answer. I can get ofbiz running at my localhost. But, I > cannot get it running for my domain. > Where should I insert <Connector port="8009" protocol="AJP/1.3" > redirectPort="8443" />? > In /etc/tomcat8/server.xml? I just cannot get it work with AJP and apache2 > server. > > Thanks, > > Tom > > > > On Tue, Jul 24, 2018 at 10:48 PM, satish <[hidden email]> > wrote: > >> Hi Tom, >> Please follow this installations guide to run OFBiz in Ubuntu. >> https://medium.com/viithiisys/installation-steps-of-apache- >> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >> >> Thanks, >> Satish Kumar >> >> >> >> -- >> Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >> smime.p7s (5K) Download Attachment |
In reply to this post by Tom Luo
Hi, All,
I read the documents in the linkhttps://s.apache.org/nbdk I think my configurations in framework/catalina/ofbiz-compo Moreover, I feel my apache2 configurations are correct. So, I attached these files in the email. Could anyone help me to have a look? Really appreciate your help! Tom luo On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux <[hidden email]> wrote: Hi Tom, ofbiz-component.xml (17K) Download Attachment |
Hi Tom,
I think you should either use the http/https connectors or the ajp connector. Please share your Apache config/virtual host also as I think there might be the problem. Best regards, Michael Am 25.07.18 um 23:21 schrieb Tom Luo: > Hi, All, > > I read the documents in the linkhttps://s.apache.org/nbdk > I think my configurations in framework/catalina/ofbiz-component.xml > are correct. > Moreover, I feel my apache2 configurations are correct. > So, I attached these files in the email. Could anyone help me to have > a look? > > Really appreciate your help! > > Tom luo > > > > On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux > <[hidden email] <mailto:[hidden email]>> > wrote: > > Hi Tom, > > This might help if you are using HTTPD (Apache2) > https://s.apache.org/nbdk > > Jacques > > > > Le 25/07/2018 à 05:30, Tom Luo a écrit : > > Hi, Satish, > > Thanks for your answer. I can get ofbiz running at my > localhost. But, I > cannot get it running for my domain. > Where should I insert <Connector port="8009" protocol="AJP/1.3" > redirectPort="8443" />? > In /etc/tomcat8/server.xml? I just cannot get it work with AJP > and apache2 > server. > > Thanks, > > Tom > > > > On Tue, Jul 24, 2018 at 10:48 PM, satish > <[hidden email] <mailto:[hidden email]>> > wrote: > > Hi Tom, > Please follow this installations guide to run OFBiz in Ubuntu. > https://medium.com/viithiisys/installation-steps-of-apache- > <https://medium.com/viithiisys/installation-steps-of-apache-> > ofbiz-16-0-in-ubuntu-2edc39e9c7e2 > > Thanks, > Satish Kumar > > > > -- > Sent from: > http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html > <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html> > > > smime.p7s (5K) Download Attachment |
In reply to this post by Tom Luo
Hi, Micahel,
Thanks for your reply. Where do I make the choice of using http/https or ajp connector? In framework/catalina/ofbiz-component.xml? Do I need to comment out http/https property if I choose to use ajp connector in ofbiz-component.xml? Moreover, the virtual hose info should be in the 000-default.conf 000-default-le-ssl.conf I attached in the last email, right? BTW, I am using Ubuntu 16.04, Apache server. and the latest version of ofbiz. Thanks, Tom Luo On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl <[hidden email]> wrote: > Hi Tom, > > I think you should either use the http/https connectors or the ajp > connector. > > Please share your Apache config/virtual host also as I think there might > be the problem. > > Best regards, > Michael > > > Am 25.07.18 um 23:21 schrieb Tom Luo: > >> Hi, All, >> >> I read the documents in the linkhttps://s.apache.org/nbdk >> I think my configurations in framework/catalina/ofbiz-component.xml are >> correct. >> Moreover, I feel my apache2 configurations are correct. >> So, I attached these files in the email. Could anyone help me to have a >> look? >> >> Really appreciate your help! >> >> Tom luo >> >> >> >> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >> [hidden email] <mailto:[hidden email]>> >> wrote: >> >> Hi Tom, >> >> This might help if you are using HTTPD (Apache2) >> https://s.apache.org/nbdk >> >> Jacques >> >> >> >> Le 25/07/2018 à 05:30, Tom Luo a écrit : >> >> Hi, Satish, >> >> Thanks for your answer. I can get ofbiz running at my >> localhost. But, I >> cannot get it running for my domain. >> Where should I insert <Connector port="8009" protocol="AJP/1.3" >> redirectPort="8443" />? >> In /etc/tomcat8/server.xml? I just cannot get it work with AJP >> and apache2 >> server. >> >> Thanks, >> >> Tom >> >> >> >> On Tue, Jul 24, 2018 at 10:48 PM, satish >> <[hidden email] <mailto:[hidden email] >> >> >> wrote: >> >> Hi Tom, >> Please follow this installations guide to run OFBiz in Ubuntu. >> https://medium.com/viithiisys/installation-steps-of-apache- >> <https://medium.com/viithiisys/installation-steps-of-apache-> >> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >> >> Thanks, >> Satish Kumar >> >> >> >> -- >> Sent from: >> http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >> <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html> >> >> >> >> > > |
Hi Tom,
your mail only contained the ofbiz-component.xml. And yes, you should comment out the http(s) connector parts. Best regards, Michael Brohl ecomify GmbH www.ecomify.de Am 25.07.18 um 23:59 schrieb Tom Luo: > Hi, Micahel, > > Thanks for your reply. Where do I make the choice of using http/https or > ajp connector? > In framework/catalina/ofbiz-component.xml? Do I need to comment out > http/https property if I choose to use ajp connector in ofbiz-component.xml? > > Moreover, the virtual hose info should be in the 000-default.conf > 000-default-le-ssl.conf I attached in the last email, right? > > BTW, I am using Ubuntu 16.04, Apache server. and the latest version of > ofbiz. > > Thanks, > > Tom Luo > > > On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl <[hidden email]> > wrote: > >> Hi Tom, >> >> I think you should either use the http/https connectors or the ajp >> connector. >> >> Please share your Apache config/virtual host also as I think there might >> be the problem. >> >> Best regards, >> Michael >> >> >> Am 25.07.18 um 23:21 schrieb Tom Luo: >> >>> Hi, All, >>> >>> I read the documents in the linkhttps://s.apache.org/nbdk >>> I think my configurations in framework/catalina/ofbiz-component.xml are >>> correct. >>> Moreover, I feel my apache2 configurations are correct. >>> So, I attached these files in the email. Could anyone help me to have a >>> look? >>> >>> Really appreciate your help! >>> >>> Tom luo >>> >>> >>> >>> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >>> [hidden email] <mailto:[hidden email]>> >>> wrote: >>> >>> Hi Tom, >>> >>> This might help if you are using HTTPD (Apache2) >>> https://s.apache.org/nbdk >>> >>> Jacques >>> >>> >>> >>> Le 25/07/2018 à 05:30, Tom Luo a écrit : >>> >>> Hi, Satish, >>> >>> Thanks for your answer. I can get ofbiz running at my >>> localhost. But, I >>> cannot get it running for my domain. >>> Where should I insert <Connector port="8009" protocol="AJP/1.3" >>> redirectPort="8443" />? >>> In /etc/tomcat8/server.xml? I just cannot get it work with AJP >>> and apache2 >>> server. >>> >>> Thanks, >>> >>> Tom >>> >>> >>> >>> On Tue, Jul 24, 2018 at 10:48 PM, satish >>> <[hidden email] <mailto:[hidden email] >>> wrote: >>> >>> Hi Tom, >>> Please follow this installations guide to run OFBiz in Ubuntu. >>> https://medium.com/viithiisys/installation-steps-of-apache- >>> <https://medium.com/viithiisys/installation-steps-of-apache-> >>> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >>> >>> Thanks, >>> Satish Kumar >>> >>> >>> >>> -- >>> Sent from: >>> http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >>> <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html> >>> >>> >>> >>> >> smime.p7s (5K) Download Attachment |
In reply to this post by Michael Brohl-3
Hi, Micahel,
Thanks for your reply. Where do I make the choice of using http/https or ajp connector? In framework/catalina/ofbiz-component.xml? Do I need to comment out http/https property if I choose to use ajp connector in ofbiz-component.xml? Moreover, the Apache config/virtual host files should be in the 000-default.conf 000-default-le-ssl.conf files I attached in last email, right? Or, should be Apache config file be a different file? BTW, I am using Ubuntu 16.04, Apache server and latest version of Ofbiz. Thanks, Tom Luo On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl <[hidden email]> wrote: > Hi Tom, > > I think you should either use the http/https connectors or the ajp > connector. > > Please share your Apache config/virtual host also as I think there might > be the problem. > > Best regards, the virtual hose info should be in the > > Michael > > > Am 25.07.18 um 23:21 schrieb Tom Luo: > >> Hi, All, >> >> I read the documents in the linkhttps://s.apache.org/nbdk >> I think my configurations in framework/catalina/ofbiz-component.xml are >> correct. >> Moreover, I feel my apache2 configurations are correct. >> So, I attached these files in the email. Could anyone help me to have a >> look? >> >> Really appreciate your help! >> >> Tom luo >> >> >> >> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >> [hidden email] <mailto:[hidden email]>> >> wrote: >> >> Hi Tom, >> >> This might help if you are using HTTPD (Apache2) >> https://s.apache.org/nbdk >> >> Jacques >> >> >> >> Le 25/07/2018 à 05:30, Tom Luo a écrit : >> >> Hi, Satish, >> >> Thanks for your answer. I can get ofbiz running at my >> localhost. But, I >> cannot get it running for my domain. >> Where should I insert <Connector port="8009" protocol="AJP/1.3" >> redirectPort="8443" />? >> In /etc/tomcat8/server.xml? I just cannot get it work with AJP >> and apache2 >> server. >> >> Thanks, >> >> Tom >> >> >> >> On Tue, Jul 24, 2018 at 10:48 PM, satish >> <[hidden email] <mailto:[hidden email] >> >> >> wrote: >> >> Hi Tom, >> Please follow this installations guide to run OFBiz in Ubuntu. >> https://medium.com/viithiisys/installation-steps-of-apache- >> <https://medium.com/viithiisys/installation-steps-of-apache-> >> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >> >> Thanks, >> Satish Kumar >> >> >> >> -- >> Sent from: >> http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >> <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html> >> >> >> >> > > |
In reply to this post by Michael Brohl-3
Hi, Michael I attached the Apache config files. Could you help me to have a look? Thanks a lot! Tom Luo On Wed, Jul 25, 2018 at 6:01 PM, Michael Brohl <[hidden email]> wrote: Hi Tom, |
I removed the http/https parts in In framework/catalina/ofbiz-component.xml.
But it still does not work. On Wed, Jul 25, 2018 at 6:09 PM, Tom Luo <[hidden email]> wrote: > Hi, Michael > > I attached the Apache config files. Could you help me to have a look? > > Thanks a lot! > > Tom Luo > > > On Wed, Jul 25, 2018 at 6:01 PM, Michael Brohl <[hidden email]> > wrote: > >> Hi Tom, >> >> your mail only contained the ofbiz-component.xml. >> >> And yes, you should comment out the http(s) connector parts. >> >> Best regards, >> >> Michael Brohl >> ecomify GmbH >> www.ecomify.de >> >> >> Am 25.07.18 um 23:59 schrieb Tom Luo: >> >> Hi, Micahel, >>> >>> Thanks for your reply. Where do I make the choice of using http/https or >>> ajp connector? >>> In framework/catalina/ofbiz-component.xml? Do I need to comment out >>> http/https property if I choose to use ajp connector in >>> ofbiz-component.xml? >>> >>> Moreover, the virtual hose info should be in the 000-default.conf >>> 000-default-le-ssl.conf I attached in the last email, right? >>> >>> BTW, I am using Ubuntu 16.04, Apache server. and the latest version of >>> ofbiz. >>> >>> Thanks, >>> >>> Tom Luo >>> >>> >>> On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl <[hidden email] >>> > >>> wrote: >>> >>> Hi Tom, >>>> >>>> I think you should either use the http/https connectors or the ajp >>>> connector. >>>> >>>> Please share your Apache config/virtual host also as I think there might >>>> be the problem. >>>> >>>> Best regards, >>>> Michael >>>> >>>> >>>> Am 25.07.18 um 23:21 schrieb Tom Luo: >>>> >>>> Hi, All, >>>>> >>>>> I read the documents in the linkhttps://s.apache.org/nbdk >>>>> I think my configurations in framework/catalina/ofbiz-component.xml >>>>> are >>>>> correct. >>>>> Moreover, I feel my apache2 configurations are correct. >>>>> So, I attached these files in the email. Could anyone help me to have a >>>>> look? >>>>> >>>>> Really appreciate your help! >>>>> >>>>> Tom luo >>>>> >>>>> >>>>> >>>>> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >>>>> [hidden email] <mailto:[hidden email]>> >>>>> wrote: >>>>> >>>>> Hi Tom, >>>>> >>>>> This might help if you are using HTTPD (Apache2) >>>>> https://s.apache.org/nbdk >>>>> >>>>> Jacques >>>>> >>>>> >>>>> >>>>> Le 25/07/2018 à 05:30, Tom Luo a écrit : >>>>> >>>>> Hi, Satish, >>>>> >>>>> Thanks for your answer. I can get ofbiz running at my >>>>> localhost. But, I >>>>> cannot get it running for my domain. >>>>> Where should I insert <Connector port="8009" >>>>> protocol="AJP/1.3" >>>>> redirectPort="8443" />? >>>>> In /etc/tomcat8/server.xml? I just cannot get it work with AJP >>>>> and apache2 >>>>> server. >>>>> >>>>> Thanks, >>>>> >>>>> Tom >>>>> >>>>> >>>>> >>>>> On Tue, Jul 24, 2018 at 10:48 PM, satish >>>>> <[hidden email] <mailto:satish.saini@viithiisy >>>>> s.com >>>>> wrote: >>>>> >>>>> Hi Tom, >>>>> Please follow this installations guide to run OFBiz in >>>>> Ubuntu. >>>>> https://medium.com/viithiisys >>>>> /installation-steps-of-apache- >>>>> <https://medium.com/viithiisy >>>>> s/installation-steps-of-apache-> >>>>> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >>>>> >>>>> Thanks, >>>>> Satish Kumar >>>>> >>>>> >>>>> >>>>> -- >>>>> Sent from: >>>>> http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >>>>> <http://ofbiz.135035.n4.nabbl >>>>> e.com/OFBiz-User-f135036.html> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >> >> > |
In reply to this post by Tom Luo
Hi Tom,
inline... Am 26.07.18 um 00:07 schrieb Tom Luo: > Hi, Micahel, > > Thanks for your reply. Where do I make the choice of using http/https or > ajp connector? > In framework/catalina/ofbiz-component.xml? Do I need to comment out > http/https property if I choose to use ajp connector in ofbiz-component.xml? Yes, see my earlier remarks. You use AJP through port 8009 to communicate from the webserver to OFBiz and vice versa. The http/https handling will be between your Apache webserver and the client/browser, that's why you don't need it in OFBiz if you use AJP. So the communication is browser <-- http/https --> Apache webserver <-- ajp --> OFBiz > Moreover, the Apache config/virtual host files should be in the > 000-default.conf 000-default-le-ssl.conf files I attached in last email, > right? These files did not come with the mail. Attachments often do not go through. Please use another way to share your code (Github, DropBox or else). > Or, should be Apache config file be a different file? We use to create new virtual host files beside the standard Ubuntu files because they might get updated if you have webserver updates. But it is possible to use them with the changes needed fpr the ajp proxy. Regards, Michael Brohl ecomify GmbH www.ecomify.de > > BTW, I am using Ubuntu 16.04, Apache server and latest version of Ofbiz. > > Thanks, > > Tom Luo > > > > On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl <[hidden email]> > wrote: > >> Hi Tom, >> >> I think you should either use the http/https connectors or the ajp >> connector. >> >> Please share your Apache config/virtual host also as I think there might >> be the problem. >> >> Best regards, the virtual hose info should be in the >> >> Michael >> >> >> Am 25.07.18 um 23:21 schrieb Tom Luo: >> >>> Hi, All, >>> >>> I read the documents in the linkhttps://s.apache.org/nbdk >>> I think my configurations in framework/catalina/ofbiz-component.xml are >>> correct. >>> Moreover, I feel my apache2 configurations are correct. >>> So, I attached these files in the email. Could anyone help me to have a >>> look? >>> >>> Really appreciate your help! >>> >>> Tom luo >>> >>> >>> >>> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >>> [hidden email] <mailto:[hidden email]>> >>> wrote: >>> >>> Hi Tom, >>> >>> This might help if you are using HTTPD (Apache2) >>> https://s.apache.org/nbdk >>> >>> Jacques >>> >>> >>> >>> Le 25/07/2018 à 05:30, Tom Luo a écrit : >>> >>> Hi, Satish, >>> >>> Thanks for your answer. I can get ofbiz running at my >>> localhost. But, I >>> cannot get it running for my domain. >>> Where should I insert <Connector port="8009" protocol="AJP/1.3" >>> redirectPort="8443" />? >>> In /etc/tomcat8/server.xml? I just cannot get it work with AJP >>> and apache2 >>> server. >>> >>> Thanks, >>> >>> Tom >>> >>> >>> >>> On Tue, Jul 24, 2018 at 10:48 PM, satish >>> <[hidden email] <mailto:[hidden email] >>> wrote: >>> >>> Hi Tom, >>> Please follow this installations guide to run OFBiz in Ubuntu. >>> https://medium.com/viithiisys/installation-steps-of-apache- >>> <https://medium.com/viithiisys/installation-steps-of-apache-> >>> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >>> >>> Thanks, >>> Satish Kumar >>> >>> >>> >>> -- >>> Sent from: >>> http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >>> <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html> >>> >>> >>> >>> >> smime.p7s (5K) Download Attachment |
Hi Tom,
Please give a try with following steps to configure mod_proxy_ajp and access OFBiz though apache on Ubuntu 1. Setup OFBIZ project and make sure that it is running on tomcat server (embedded) at http://localhost:8080 and https://localhost:8443 in the browser. 2. Install apache2 server in Ubuntu 16.04 # apt-get install apache2 3. Enable the proxy, proxy_ajp and ssl modules. # a2enmod proxy proxy_ajp ssl 4. Now create link in /etc/apache2/sites-enable directory for ln -s root@localhost:~# ln -s /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf 5. Now add some lines which are below in both /etc/apache2/sites-enable/000-default and default-ssl files. ProxyRequests Off ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ 7. Now start apache server and make sure OFBiz is running. root@localhost:~# /etc/init.d/apache2 start 8. Now browse to http://localhost/example or https://localhost/example (OFBiz url) instead of http://localhost:8080/example for access OFBiz from apache server. Thanks & Regards, -- Sandeep Kose www.hotwaxsystems.com On Thu, Jul 26, 2018 at 3:56 PM, Michael Brohl <[hidden email]> wrote: > Hi Tom, > > inline... > > Am 26.07.18 um 00:07 schrieb Tom Luo: > >> Hi, Micahel, >> >> Thanks for your reply. Where do I make the choice of using http/https or >> ajp connector? >> In framework/catalina/ofbiz-component.xml? Do I need to comment out >> http/https property if I choose to use ajp connector in >> ofbiz-component.xml? >> > > Yes, see my earlier remarks. > > You use AJP through port 8009 to communicate from the webserver to OFBiz > and vice versa. > The http/https handling will be between your Apache webserver and the > client/browser, that's why you don't need it in OFBiz if you use AJP. > > So the communication is > > browser <-- http/https --> Apache webserver <-- ajp --> OFBiz > > Moreover, the Apache config/virtual host files should be in the >> 000-default.conf 000-default-le-ssl.conf files I attached in last email, >> right? >> > > These files did not come with the mail. Attachments often do not go > through. Please use another way to share your code (Github, DropBox or > else). > > Or, should be Apache config file be a different file? >> > > We use to create new virtual host files beside the standard Ubuntu files > because they might get updated if you have webserver updates. > But it is possible to use them with the changes needed fpr the ajp proxy. > > Regards, > > Michael Brohl > ecomify GmbH > www.ecomify.de > > >> BTW, I am using Ubuntu 16.04, Apache server and latest version of Ofbiz. >> >> Thanks, >> >> Tom Luo >> >> >> >> On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl <[hidden email]> >> wrote: >> >> Hi Tom, >>> >>> I think you should either use the http/https connectors or the ajp >>> connector. >>> >>> Please share your Apache config/virtual host also as I think there might >>> be the problem. >>> >>> Best regards, the virtual hose info should be in the >>> >>> Michael >>> >>> >>> Am 25.07.18 um 23:21 schrieb Tom Luo: >>> >>> Hi, All, >>>> >>>> I read the documents in the linkhttps://s.apache.org/nbdk >>>> I think my configurations in framework/catalina/ofbiz-component.xml are >>>> correct. >>>> Moreover, I feel my apache2 configurations are correct. >>>> So, I attached these files in the email. Could anyone help me to have a >>>> look? >>>> >>>> Really appreciate your help! >>>> >>>> Tom luo >>>> >>>> >>>> >>>> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >>>> [hidden email] <mailto:[hidden email]>> >>>> wrote: >>>> >>>> Hi Tom, >>>> >>>> This might help if you are using HTTPD (Apache2) >>>> https://s.apache.org/nbdk >>>> >>>> Jacques >>>> >>>> >>>> >>>> Le 25/07/2018 à 05:30, Tom Luo a écrit : >>>> >>>> Hi, Satish, >>>> >>>> Thanks for your answer. I can get ofbiz running at my >>>> localhost. But, I >>>> cannot get it running for my domain. >>>> Where should I insert <Connector port="8009" >>>> protocol="AJP/1.3" >>>> redirectPort="8443" />? >>>> In /etc/tomcat8/server.xml? I just cannot get it work with AJP >>>> and apache2 >>>> server. >>>> >>>> Thanks, >>>> >>>> Tom >>>> >>>> >>>> >>>> On Tue, Jul 24, 2018 at 10:48 PM, satish >>>> <[hidden email] <mailto:satish.saini@viithiisy >>>> s.com >>>> wrote: >>>> >>>> Hi Tom, >>>> Please follow this installations guide to run OFBiz in >>>> Ubuntu. >>>> https://medium.com/viithiisys/installation-steps- >>>> of-apache- >>>> <https://medium.com/viithiisys/installation-steps-of- >>>> apache-> >>>> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >>>> >>>> Thanks, >>>> Satish Kumar >>>> >>>> >>>> >>>> -- >>>> Sent from: >>>> http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >>>> <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html >>>> > >>>> >>>> >>>> >>>> >>>> >>> > > |
Hi All,
I followed the suggestions Sandeep Kose and Michael Brohl gave to me. Thanks both of you for help. I uploaded my latest configuration files in github: https://github.com/skyzluo/configuration Now, I see a strange problem. The website is secure in Firefox, however, Chrome says the website is not secure. The website is here: https://www.languageetutor.com/accounting/control/main Could anyone tell me why Chrome and Firefox report differently? Thanks, Tom Luo On Thu, Jul 26, 2018 at 7:31 AM, Sandeep Kose < [hidden email]> wrote: > Hi Tom, > > Please give a try with following steps to configure mod_proxy_ajp and > access OFBiz though apache on Ubuntu > > > 1. Setup OFBIZ project and make sure that it is running on tomcat server > (embedded) at http://localhost:8080 and https://localhost:8443 in the > browser. > 2. Install apache2 server in Ubuntu 16.04 > # apt-get install apache2 > 3. Enable the proxy, proxy_ajp and ssl modules. > # a2enmod proxy proxy_ajp ssl > 4. Now create link in /etc/apache2/sites-enable directory for ln -s > root@localhost:~# ln -s /etc/apache2/sites-available/default-ssl.conf > /etc/apache2/sites-enabled/default-ssl.conf > 5. Now add some lines which are below in both > /etc/apache2/sites-enable/000-default and default-ssl files. > > ProxyRequests Off > ProxyPass / ajp://localhost:8009/ > ProxyPassReverse / ajp://localhost:8009/ > > 7. Now start apache server and make sure OFBiz is running. > root@localhost:~# /etc/init.d/apache2 start > 8. Now browse to http://localhost/example or > https://localhost/example (OFBiz url) instead of > http://localhost:8080/example for access OFBiz from apache server. > > > Thanks & Regards, > -- > Sandeep Kose > www.hotwaxsystems.com > > On Thu, Jul 26, 2018 at 3:56 PM, Michael Brohl <[hidden email]> > wrote: > > > Hi Tom, > > > > inline... > > > > Am 26.07.18 um 00:07 schrieb Tom Luo: > > > >> Hi, Micahel, > >> > >> Thanks for your reply. Where do I make the choice of using http/https or > >> ajp connector? > >> In framework/catalina/ofbiz-component.xml? Do I need to comment out > >> http/https property if I choose to use ajp connector in > >> ofbiz-component.xml? > >> > > > > Yes, see my earlier remarks. > > > > You use AJP through port 8009 to communicate from the webserver to OFBiz > > and vice versa. > > The http/https handling will be between your Apache webserver and the > > client/browser, that's why you don't need it in OFBiz if you use AJP. > > > > So the communication is > > > > browser <-- http/https --> Apache webserver <-- ajp --> OFBiz > > > > Moreover, the Apache config/virtual host files should be in the > >> 000-default.conf 000-default-le-ssl.conf files I attached in last > email, > >> right? > >> > > > > These files did not come with the mail. Attachments often do not go > > through. Please use another way to share your code (Github, DropBox or > > else). > > > > Or, should be Apache config file be a different file? > >> > > > > We use to create new virtual host files beside the standard Ubuntu files > > because they might get updated if you have webserver updates. > > But it is possible to use them with the changes needed fpr the ajp proxy. > > > > Regards, > > > > Michael Brohl > > ecomify GmbH > > www.ecomify.de > > > > > >> BTW, I am using Ubuntu 16.04, Apache server and latest version of Ofbiz. > >> > >> Thanks, > >> > >> Tom Luo > >> > >> > >> > >> On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl < > [hidden email]> > >> wrote: > >> > >> Hi Tom, > >>> > >>> I think you should either use the http/https connectors or the ajp > >>> connector. > >>> > >>> Please share your Apache config/virtual host also as I think there > might > >>> be the problem. > >>> > >>> Best regards, the virtual hose info should be in the > >>> > >>> Michael > >>> > >>> > >>> Am 25.07.18 um 23:21 schrieb Tom Luo: > >>> > >>> Hi, All, > >>>> > >>>> I read the documents in the linkhttps://s.apache.org/nbdk > >>>> I think my configurations in framework/catalina/ofbiz-component.xml > are > >>>> correct. > >>>> Moreover, I feel my apache2 configurations are correct. > >>>> So, I attached these files in the email. Could anyone help me to have > a > >>>> look? > >>>> > >>>> Really appreciate your help! > >>>> > >>>> Tom luo > >>>> > >>>> > >>>> > >>>> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < > >>>> [hidden email] <mailto:[hidden email]>> > >>>> wrote: > >>>> > >>>> Hi Tom, > >>>> > >>>> This might help if you are using HTTPD (Apache2) > >>>> https://s.apache.org/nbdk > >>>> > >>>> Jacques > >>>> > >>>> > >>>> > >>>> Le 25/07/2018 à 05:30, Tom Luo a écrit : > >>>> > >>>> Hi, Satish, > >>>> > >>>> Thanks for your answer. I can get ofbiz running at my > >>>> localhost. But, I > >>>> cannot get it running for my domain. > >>>> Where should I insert <Connector port="8009" > >>>> protocol="AJP/1.3" > >>>> redirectPort="8443" />? > >>>> In /etc/tomcat8/server.xml? I just cannot get it work with > AJP > >>>> and apache2 > >>>> server. > >>>> > >>>> Thanks, > >>>> > >>>> Tom > >>>> > >>>> > >>>> > >>>> On Tue, Jul 24, 2018 at 10:48 PM, satish > >>>> <[hidden email] <mailto:satish.saini@viithiisy > >>>> s.com > >>>> wrote: > >>>> > >>>> Hi Tom, > >>>> Please follow this installations guide to run OFBiz in > >>>> Ubuntu. > >>>> https://medium.com/viithiisys/installation-steps- > >>>> of-apache- > >>>> <https://medium.com/viithiisys/installation-steps-of- > >>>> apache-> > >>>> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 > >>>> > >>>> Thanks, > >>>> Satish Kumar > >>>> > >>>> > >>>> > >>>> -- > >>>> Sent from: > >>>> http://ofbiz.135035.n4.nabble. > com/OFBiz-User-f135036.html > >>>> <http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036. > html > >>>> > > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > > > > > |
It works now. Thanks everyone!
On Thu, Jul 26, 2018 at 9:46 PM, Tom Luo <[hidden email]> wrote: > Hi All, > > I followed the suggestions Sandeep Kose and Michael Brohl gave to me. > Thanks both of you for help. > I uploaded my latest configuration files in github: > https://github.com/skyzluo/configuration > > Now, I see a strange problem. The website is secure in Firefox, however, > Chrome says the website is not secure. > The website is here: https://www.languageetutor.com/accounting/ > control/main > > Could anyone tell me why Chrome and Firefox report differently? > > Thanks, > > Tom Luo > > > > On Thu, Jul 26, 2018 at 7:31 AM, Sandeep Kose <sandeep.kose@hotwaxsystems. > com> wrote: > >> Hi Tom, >> >> Please give a try with following steps to configure mod_proxy_ajp and >> access OFBiz though apache on Ubuntu >> >> >> 1. Setup OFBIZ project and make sure that it is running on tomcat >> server >> (embedded) at http://localhost:8080 and https://localhost:8443 in the >> browser. >> 2. Install apache2 server in Ubuntu 16.04 >> # apt-get install apache2 >> 3. Enable the proxy, proxy_ajp and ssl modules. >> # a2enmod proxy proxy_ajp ssl >> 4. Now create link in /etc/apache2/sites-enable directory for ln -s >> root@localhost:~# ln -s /etc/apache2/sites-available/default-ssl.conf >> /etc/apache2/sites-enabled/default-ssl.conf >> 5. Now add some lines which are below in both >> /etc/apache2/sites-enable/000-default and default-ssl files. >> >> ProxyRequests Off >> ProxyPass / ajp://localhost:8009/ >> ProxyPassReverse / ajp://localhost:8009/ >> >> 7. Now start apache server and make sure OFBiz is running. >> root@localhost:~# /etc/init.d/apache2 start >> 8. Now browse to http://localhost/example or >> https://localhost/example (OFBiz url) instead of >> http://localhost:8080/example for access OFBiz from apache server. >> >> >> Thanks & Regards, >> -- >> Sandeep Kose >> www.hotwaxsystems.com >> >> On Thu, Jul 26, 2018 at 3:56 PM, Michael Brohl <[hidden email]> >> wrote: >> >> > Hi Tom, >> > >> > inline... >> > >> > Am 26.07.18 um 00:07 schrieb Tom Luo: >> > >> >> Hi, Micahel, >> >> >> >> Thanks for your reply. Where do I make the choice of using http/https >> or >> >> ajp connector? >> >> In framework/catalina/ofbiz-component.xml? Do I need to comment out >> >> http/https property if I choose to use ajp connector in >> >> ofbiz-component.xml? >> >> >> > >> > Yes, see my earlier remarks. >> > >> > You use AJP through port 8009 to communicate from the webserver to OFBiz >> > and vice versa. >> > The http/https handling will be between your Apache webserver and the >> > client/browser, that's why you don't need it in OFBiz if you use AJP. >> > >> > So the communication is >> > >> > browser <-- http/https --> Apache webserver <-- ajp --> OFBiz >> > >> > Moreover, the Apache config/virtual host files should be in the >> >> 000-default.conf 000-default-le-ssl.conf files I attached in last >> email, >> >> right? >> >> >> > >> > These files did not come with the mail. Attachments often do not go >> > through. Please use another way to share your code (Github, DropBox or >> > else). >> > >> > Or, should be Apache config file be a different file? >> >> >> > >> > We use to create new virtual host files beside the standard Ubuntu files >> > because they might get updated if you have webserver updates. >> > But it is possible to use them with the changes needed fpr the ajp >> proxy. >> > >> > Regards, >> > >> > Michael Brohl >> > ecomify GmbH >> > www.ecomify.de >> > >> > >> >> BTW, I am using Ubuntu 16.04, Apache server and latest version of >> Ofbiz. >> >> >> >> Thanks, >> >> >> >> Tom Luo >> >> >> >> >> >> >> >> On Wed, Jul 25, 2018 at 5:34 PM, Michael Brohl < >> [hidden email]> >> >> wrote: >> >> >> >> Hi Tom, >> >>> >> >>> I think you should either use the http/https connectors or the ajp >> >>> connector. >> >>> >> >>> Please share your Apache config/virtual host also as I think there >> might >> >>> be the problem. >> >>> >> >>> Best regards, the virtual hose info should be in the >> >>> >> >>> Michael >> >>> >> >>> >> >>> Am 25.07.18 um 23:21 schrieb Tom Luo: >> >>> >> >>> Hi, All, >> >>>> >> >>>> I read the documents in the linkhttps://s.apache.org/nbdk >> >>>> I think my configurations in framework/catalina/ofbiz-component.xml >> are >> >>>> correct. >> >>>> Moreover, I feel my apache2 configurations are correct. >> >>>> So, I attached these files in the email. Could anyone help me to >> have a >> >>>> look? >> >>>> >> >>>> Really appreciate your help! >> >>>> >> >>>> Tom luo >> >>>> >> >>>> >> >>>> >> >>>> On Wed, Jul 25, 2018 at 1:16 AM, Jacques Le Roux < >> >>>> [hidden email] <mailto:[hidden email]>> >> >>>> wrote: >> >>>> >> >>>> Hi Tom, >> >>>> >> >>>> This might help if you are using HTTPD (Apache2) >> >>>> https://s.apache.org/nbdk >> >>>> >> >>>> Jacques >> >>>> >> >>>> >> >>>> >> >>>> Le 25/07/2018 à 05:30, Tom Luo a écrit : >> >>>> >> >>>> Hi, Satish, >> >>>> >> >>>> Thanks for your answer. I can get ofbiz running at my >> >>>> localhost. But, I >> >>>> cannot get it running for my domain. >> >>>> Where should I insert <Connector port="8009" >> >>>> protocol="AJP/1.3" >> >>>> redirectPort="8443" />? >> >>>> In /etc/tomcat8/server.xml? I just cannot get it work with >> AJP >> >>>> and apache2 >> >>>> server. >> >>>> >> >>>> Thanks, >> >>>> >> >>>> Tom >> >>>> >> >>>> >> >>>> >> >>>> On Tue, Jul 24, 2018 at 10:48 PM, satish >> >>>> <[hidden email] <mailto:satish.saini@viithiisy >> >>>> s.com >> >>>> wrote: >> >>>> >> >>>> Hi Tom, >> >>>> Please follow this installations guide to run OFBiz in >> >>>> Ubuntu. >> >>>> https://medium.com/viithiisys/installation-steps- >> >>>> of-apache- >> >>>> <https://medium.com/viithiisys/installation-steps-of- >> >>>> apache-> >> >>>> ofbiz-16-0-in-ubuntu-2edc39e9c7e2 >> >>>> >> >>>> Thanks, >> >>>> Satish Kumar >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> Sent from: >> >>>> http://ofbiz.135035.n4.nabble. >> com/OFBiz-User-f135036.html >> >>>> <http://ofbiz.135035.n4.nabble >> .com/OFBiz-User-f135036.html >> >>>> > >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>> >> > >> > >> > > |
Free forum by Nabble | Edit this page |