I need the ecommerce website to run on port 80 with a shorter URL.
How to change this URL http://erp1.test.com:8080/ecommerce/control/main To http://erp1.test.com Permanently Thanks, -T |
Change the port in url.properties to 80 and set mount point of your
ecommerce component (ofbiz-component.xml) to "/". port.http=80 For production deployments it's always better to use virtual hosts configured in your apache HTTPD config file. On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> wrote: > I need the ecommerce website to run on port 80 with a shorter URL. > > How to change this URL > > http://erp1.test.com:8080/ecommerce/control/main > > To > > http://erp1.test.com > > Permanently > > > Thanks, > -T > |
Administrator
|
You might be interested to have a look at the ecomseo webapp
Then be sure to read https://issues.apache.org/jira/browse/OFBIZ-5312 At list the description and the last comments after "Jacques Le Roux added a comment - 22/Mar/14 23:03" Jacques Le 22/06/2015 21:55, Mandeep Sidhu a écrit : > Change the port in url.properties to 80 and set mount point of your > ecommerce component (ofbiz-component.xml) to "/". > port.http=80 > > For production deployments it's always better to use virtual hosts > configured in your apache HTTPD config file. > > On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> wrote: > >> I need the ecommerce website to run on port 80 with a shorter URL. >> >> How to change this URL >> >> http://erp1.test.com:8080/ecommerce/control/main >> >> To >> >> http://erp1.test.com >> >> Permanently >> >> >> Thanks, >> -T >> |
Administrator
|
Le 22/06/2015 22:35, Jacques Le Roux a écrit :
> You might be interested to have a look at the ecomseo webapp > Then be sure to read https://issues.apache.org/jira/browse/OFBIZ-5312 At list the description and the last comments after "Jacques Le Roux added a > comment - 22/Mar/14 23:03" At least > > Jacques > > Le 22/06/2015 21:55, Mandeep Sidhu a écrit : >> Change the port in url.properties to 80 and set mount point of your >> ecommerce component (ofbiz-component.xml) to "/". >> port.http=80 >> >> For production deployments it's always better to use virtual hosts >> configured in your apache HTTPD config file. >> >> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> wrote: >> >>> I need the ecommerce website to run on port 80 with a shorter URL. >>> >>> How to change this URL >>> >>> http://erp1.test.com:8080/ecommerce/control/main >>> >>> To >>> >>> http://erp1.test.com >>> >>> Permanently >>> >>> >>> Thanks, >>> -T >>> > |
In reply to this post by Mandeep Sidhu
Thanks Mandeep,
If I left it at port 8080 and changed the ofbiz-component.xml) to "/". Then I can access to the ecommerce website. But when I change it to port 80 in the url.properties and changed the ofbiz-component.xml) to "/" I can not get access to the ecommerce website. What am I missing. Here are my configuration: **********/ofbiz14/framework/webapp/config/url.properties*************** # HTTP Port (Not Secure port) port.http=80 force.http.host= *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** <webapp name="ecommerce" title="eCommerce" server="default-server" location="webapp/ecommerce" mount-point="/" app-bar-display="false"/> Thanks, -T On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <[hidden email]> wrote: > Change the port in url.properties to 80 and set mount point of your > ecommerce component (ofbiz-component.xml) to "/". > port.http=80 > > For production deployments it's always better to use virtual hosts > configured in your apache HTTPD config file. > > On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> > wrote: > > > I need the ecommerce website to run on port 80 with a shorter URL. > > > > How to change this URL > > > > http://erp1.test.com:8080/ecommerce/control/main > > > > To > > > > http://erp1.test.com > > > > Permanently > > > > > > Thanks, > > -T > > > |
You also need to change the settings in
framework/catalina/ofbiz-component.xml Adrian Crum Sandglass Software www.sandglass-software.com On 6/22/2015 2:09 PM, Tom Running wrote: > Thanks Mandeep, > > If I left it at port 8080 and changed the ofbiz-component.xml) to "/". > > Then I can access to the ecommerce website. > > > But when I change it to port 80 in the url.properties and changed the > ofbiz-component.xml) to "/" > I can not get access to the ecommerce website. > > > What am I missing. > > Here are my configuration: > > **********/ofbiz14/framework/webapp/config/url.properties*************** > # HTTP Port (Not Secure port) > port.http=80 > force.http.host= > > > *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** > <webapp name="ecommerce" > title="eCommerce" > server="default-server" > location="webapp/ecommerce" > mount-point="/" > app-bar-display="false"/> > > > > > Thanks, > -T > > On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <[hidden email]> > wrote: > >> Change the port in url.properties to 80 and set mount point of your >> ecommerce component (ofbiz-component.xml) to "/". >> port.http=80 >> >> For production deployments it's always better to use virtual hosts >> configured in your apache HTTPD config file. >> >> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >> wrote: >> >>> I need the ecommerce website to run on port 80 with a shorter URL. >>> >>> How to change this URL >>> >>> http://erp1.test.com:8080/ecommerce/control/main >>> >>> To >>> >>> http://erp1.test.com >>> >>> Permanently >>> >>> >>> Thanks, >>> -T >>> >> > |
In reply to this post by Tom Running
I got it to work now for port 80.
These are the files that I modified. *********Change Port 8080 t0 80 files **************************** /root/app1/ofbiz14/framework/webapp/config/url.properties /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml Thank you for your help, -T On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> wrote: > Thanks Mandeep, > > If I left it at port 8080 and changed the ofbiz-component.xml) to "/". > > Then I can access to the ecommerce website. > > > But when I change it to port 80 in the url.properties and changed the > ofbiz-component.xml) to "/" > I can not get access to the ecommerce website. > > > What am I missing. > > Here are my configuration: > > **********/ofbiz14/framework/webapp/config/url.properties*************** > # HTTP Port (Not Secure port) > port.http=80 > force.http.host= > > > *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** > <webapp name="ecommerce" > title="eCommerce" > server="default-server" > location="webapp/ecommerce" > mount-point="/" > app-bar-display="false"/> > > > > > Thanks, > -T > > On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <[hidden email]> > wrote: > >> Change the port in url.properties to 80 and set mount point of your >> ecommerce component (ofbiz-component.xml) to "/". >> port.http=80 >> >> For production deployments it's always better to use virtual hosts >> configured in your apache HTTPD config file. >> >> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >> wrote: >> >> > I need the ecommerce website to run on port 80 with a shorter URL. >> > >> > How to change this URL >> > >> > http://erp1.test.com:8080/ecommerce/control/main >> > >> > To >> > >> > http://erp1.test.com >> > >> > Permanently >> > >> > >> > Thanks, >> > -T >> > >> > > |
OFBiz does not use Jetty, so the Jetty changes are not necessary.
Adrian Crum Sandglass Software www.sandglass-software.com On 6/22/2015 2:39 PM, Tom Running wrote: > I got it to work now for port 80. > > These are the files that I modified. > > *********Change Port 8080 t0 80 files **************************** > /root/app1/ofbiz14/framework/webapp/config/url.properties > /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml > /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml > > Thank you for your help, > -T > > On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> wrote: > >> Thanks Mandeep, >> >> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >> >> Then I can access to the ecommerce website. >> >> >> But when I change it to port 80 in the url.properties and changed the >> ofbiz-component.xml) to "/" >> I can not get access to the ecommerce website. >> >> >> What am I missing. >> >> Here are my configuration: >> >> **********/ofbiz14/framework/webapp/config/url.properties*************** >> # HTTP Port (Not Secure port) >> port.http=80 >> force.http.host= >> >> >> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >> <webapp name="ecommerce" >> title="eCommerce" >> server="default-server" >> location="webapp/ecommerce" >> mount-point="/" >> app-bar-display="false"/> >> >> >> >> >> Thanks, >> -T >> >> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <[hidden email]> >> wrote: >> >>> Change the port in url.properties to 80 and set mount point of your >>> ecommerce component (ofbiz-component.xml) to "/". >>> port.http=80 >>> >>> For production deployments it's always better to use virtual hosts >>> configured in your apache HTTPD config file. >>> >>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>> wrote: >>> >>>> I need the ecommerce website to run on port 80 with a shorter URL. >>>> >>>> How to change this URL >>>> >>>> http://erp1.test.com:8080/ecommerce/control/main >>>> >>>> To >>>> >>>> http://erp1.test.com >>>> >>>> Permanently >>>> >>>> >>>> Thanks, >>>> -T >>>> >>> >> >> > |
In reply to this post by Tom Running
I am a bit confused with the path.
********************* This is what I have before changed the mount-point="/" ************* <!Doctype html> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > </html> What should the new path be defined as? <#include "component://sliderindex.html" > Thanks, -Tom On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[hidden email]> wrote: > I got it to work now for port 80. > > These are the files that I modified. > > *********Change Port 8080 t0 80 files **************************** > /root/app1/ofbiz14/framework/webapp/config/url.properties > /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml > /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml > > Thank you for your help, > -T > > On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> > wrote: > >> Thanks Mandeep, >> >> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >> >> Then I can access to the ecommerce website. >> >> >> But when I change it to port 80 in the url.properties and changed the >> ofbiz-component.xml) to "/" >> I can not get access to the ecommerce website. >> >> >> What am I missing. >> >> Here are my configuration: >> >> **********/ofbiz14/framework/webapp/config/url.properties*************** >> # HTTP Port (Not Secure port) >> port.http=80 >> force.http.host= >> >> >> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >> <webapp name="ecommerce" >> title="eCommerce" >> server="default-server" >> location="webapp/ecommerce" >> mount-point="/" >> app-bar-display="false"/> >> >> >> >> >> Thanks, >> -T >> >> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <[hidden email] >> > wrote: >> >>> Change the port in url.properties to 80 and set mount point of your >>> ecommerce component (ofbiz-component.xml) to "/". >>> port.http=80 >>> >>> For production deployments it's always better to use virtual hosts >>> configured in your apache HTTPD config file. >>> >>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>> wrote: >>> >>> > I need the ecommerce website to run on port 80 with a shorter URL. >>> > >>> > How to change this URL >>> > >>> > http://erp1.test.com:8080/ecommerce/control/main >>> > >>> > To >>> > >>> > http://erp1.test.com >>> > >>> > Permanently >>> > >>> > >>> > Thanks, >>> > -T >>> > >>> >> >> > |
A path in a URL is not the same as a host file system path.
The component: scheme is an OFBiz shortcut to a location on the host file system, it is not an HTTP URL. Adrian Crum Sandglass Software www.sandglass-software.com On 6/22/2015 2:49 PM, Tom Running wrote: > I am a bit confused with the path. > > > ********************* This is what I have before changed the > mount-point="/" ************* > > <!Doctype html> > <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > > </html> > > > What should the new path be defined as? > <#include "component://sliderindex.html" > > > Thanks, > -Tom > > > On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[hidden email]> wrote: > >> I got it to work now for port 80. >> >> These are the files that I modified. >> >> *********Change Port 8080 t0 80 files **************************** >> /root/app1/ofbiz14/framework/webapp/config/url.properties >> /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml >> /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml >> >> Thank you for your help, >> -T >> >> On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> >> wrote: >> >>> Thanks Mandeep, >>> >>> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >>> >>> Then I can access to the ecommerce website. >>> >>> >>> But when I change it to port 80 in the url.properties and changed the >>> ofbiz-component.xml) to "/" >>> I can not get access to the ecommerce website. >>> >>> >>> What am I missing. >>> >>> Here are my configuration: >>> >>> **********/ofbiz14/framework/webapp/config/url.properties*************** >>> # HTTP Port (Not Secure port) >>> port.http=80 >>> force.http.host= >>> >>> >>> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >>> <webapp name="ecommerce" >>> title="eCommerce" >>> server="default-server" >>> location="webapp/ecommerce" >>> mount-point="/" >>> app-bar-display="false"/> >>> >>> >>> >>> >>> Thanks, >>> -T >>> >>> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu <[hidden email] >>>> wrote: >>> >>>> Change the port in url.properties to 80 and set mount point of your >>>> ecommerce component (ofbiz-component.xml) to "/". >>>> port.http=80 >>>> >>>> For production deployments it's always better to use virtual hosts >>>> configured in your apache HTTPD config file. >>>> >>>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>>> wrote: >>>> >>>>> I need the ecommerce website to run on port 80 with a shorter URL. >>>>> >>>>> How to change this URL >>>>> >>>>> http://erp1.test.com:8080/ecommerce/control/main >>>>> >>>>> To >>>>> >>>>> http://erp1.test.com >>>>> >>>>> Permanently >>>>> >>>>> >>>>> Thanks, >>>>> -T >>>>> >>>> >>> >>> >> > |
Adrian,
I think ? I might understand what you are saying ???? Not 100% when things doesn't make sense yet.... I don't know why the old host file system path would not work. ***** old information in the main.flt before the mount changed in the ofbiz-component.xml ******** <!Doctype html> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > </html> It is No longer working when I changed the mount-point="/ecommerce" to mount-point="/" in the /ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml If I have the sliderindex.html under system path /ofbiz14/specialpurpose/ecommerce/webapp/ecommerce How would I define with a include in the main.flt file ???? Thanks, -T On Mon, Jun 22, 2015 at 5:52 PM, Adrian Crum < [hidden email]> wrote: > A path in a URL is not the same as a host file system path. > > The component: scheme is an OFBiz shortcut to a location on the host file > system, it is not an HTTP URL. > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > On 6/22/2015 2:49 PM, Tom Running wrote: > >> I am a bit confused with the path. >> >> >> ********************* This is what I have before changed the >> mount-point="/" ************* >> >> <!Doctype html> >> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > >> </html> >> >> >> What should the new path be defined as? >> <#include "component://sliderindex.html" > >> >> Thanks, >> -Tom >> >> >> On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[hidden email]> >> wrote: >> >> I got it to work now for port 80. >>> >>> These are the files that I modified. >>> >>> *********Change Port 8080 t0 80 files **************************** >>> /root/app1/ofbiz14/framework/webapp/config/url.properties >>> /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml >>> /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml >>> >>> Thank you for your help, >>> -T >>> >>> On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> >>> wrote: >>> >>> Thanks Mandeep, >>>> >>>> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >>>> >>>> Then I can access to the ecommerce website. >>>> >>>> >>>> But when I change it to port 80 in the url.properties and changed the >>>> ofbiz-component.xml) to "/" >>>> I can not get access to the ecommerce website. >>>> >>>> >>>> What am I missing. >>>> >>>> Here are my configuration: >>>> >>>> **********/ofbiz14/framework/webapp/config/url.properties*************** >>>> # HTTP Port (Not Secure port) >>>> port.http=80 >>>> force.http.host= >>>> >>>> >>>> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >>>> <webapp name="ecommerce" >>>> title="eCommerce" >>>> server="default-server" >>>> location="webapp/ecommerce" >>>> mount-point="/" >>>> app-bar-display="false"/> >>>> >>>> >>>> >>>> >>>> Thanks, >>>> -T >>>> >>>> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu < >>>> [hidden email] >>>> >>>>> wrote: >>>>> >>>> >>>> Change the port in url.properties to 80 and set mount point of your >>>>> ecommerce component (ofbiz-component.xml) to "/". >>>>> port.http=80 >>>>> >>>>> For production deployments it's always better to use virtual hosts >>>>> configured in your apache HTTPD config file. >>>>> >>>>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>>>> wrote: >>>>> >>>>> I need the ecommerce website to run on port 80 with a shorter URL. >>>>>> >>>>>> How to change this URL >>>>>> >>>>>> http://erp1.test.com:8080/ecommerce/control/main >>>>>> >>>>>> To >>>>>> >>>>>> http://erp1.test.com >>>>>> >>>>>> Permanently >>>>>> >>>>>> >>>>>> Thanks, >>>>>> -T >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> |
In reply to this post by Adrian Crum-3
I though I had a great understanding of defining the systems path but now I
am confused using Ofbiz IF I have changed the mount-point="/ecommerce" to mount-point="/" in the /ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml If I have a file located in the directory /ofbiz14/specialpurpose/ecommerce/webapp/ecommerce/images/example.jpg And I have another file that will LINK to the example.jpg file, which is located in ecommerce/webapp/ecommerce/includes/calling.ftl How can I properly create a link to the example.jpg? <td><img src="/images/example.jpg" width="100%" height="58" ></td> ********************************************************************************* Another situation: IF the sliderindex.html & main.flt are in the following directory /root/app1/ofbiz14/specialpurpose/ecommerce/webapp/ecommerce/ I want main.ftl to #include sliderindex.html <#include "component://sliderindex.html" > Is this the correct path to be used to include the sliderindex.html file? Thanks, -T On Mon, Jun 22, 2015 at 5:52 PM, Adrian Crum < [hidden email]> wrote: > A path in a URL is not the same as a host file system path. > > The component: scheme is an OFBiz shortcut to a location on the host file > system, it is not an HTTP URL. > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > On 6/22/2015 2:49 PM, Tom Running wrote: > >> I am a bit confused with the path. >> >> >> ********************* This is what I have before changed the >> mount-point="/" ************* >> >> <!Doctype html> >> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > >> </html> >> >> >> What should the new path be defined as? >> <#include "component://sliderindex.html" > >> >> Thanks, >> -Tom >> >> >> On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[hidden email]> >> wrote: >> >> I got it to work now for port 80. >>> >>> These are the files that I modified. >>> >>> *********Change Port 8080 t0 80 files **************************** >>> /root/app1/ofbiz14/framework/webapp/config/url.properties >>> /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml >>> /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml >>> >>> Thank you for your help, >>> -T >>> >>> On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> >>> wrote: >>> >>> Thanks Mandeep, >>>> >>>> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >>>> >>>> Then I can access to the ecommerce website. >>>> >>>> >>>> But when I change it to port 80 in the url.properties and changed the >>>> ofbiz-component.xml) to "/" >>>> I can not get access to the ecommerce website. >>>> >>>> >>>> What am I missing. >>>> >>>> Here are my configuration: >>>> >>>> **********/ofbiz14/framework/webapp/config/url.properties*************** >>>> # HTTP Port (Not Secure port) >>>> port.http=80 >>>> force.http.host= >>>> >>>> >>>> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >>>> <webapp name="ecommerce" >>>> title="eCommerce" >>>> server="default-server" >>>> location="webapp/ecommerce" >>>> mount-point="/" >>>> app-bar-display="false"/> >>>> >>>> >>>> >>>> >>>> Thanks, >>>> -T >>>> >>>> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu < >>>> [hidden email] >>>> >>>>> wrote: >>>>> >>>> >>>> Change the port in url.properties to 80 and set mount point of your >>>>> ecommerce component (ofbiz-component.xml) to "/". >>>>> port.http=80 >>>>> >>>>> For production deployments it's always better to use virtual hosts >>>>> configured in your apache HTTPD config file. >>>>> >>>>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>>>> wrote: >>>>> >>>>> I need the ecommerce website to run on port 80 with a shorter URL. >>>>>> >>>>>> How to change this URL >>>>>> >>>>>> http://erp1.test.com:8080/ecommerce/control/main >>>>>> >>>>>> To >>>>>> >>>>>> http://erp1.test.com >>>>>> >>>>>> Permanently >>>>>> >>>>>> >>>>>> Thanks, >>>>>> -T >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> |
In reply to this post by Tom Running
FreeMarker is not aware of OFBiz port settings, therefore it is not
affected by them. A path to a file is a path to a file, regardless of HTTP port settings. The two are not related in any way. I don't know why the OFBiz component: scheme would stop working when you change port settings, and it is highly unlikely that a port change was the cause. Perhaps you changed something else to make it stop working. Adrian Crum Sandglass Software www.sandglass-software.com On 6/22/2015 4:24 PM, Tom Running wrote: > Adrian, > > I think ? I might understand what you are saying ???? Not 100% when > things doesn't make sense yet.... I don't know why the old host file > system path would not work. > > ***** old information in the main.flt before the mount changed in the > ofbiz-component.xml ******** > > <!Doctype html> > <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > > </html> > > It is No longer working when I changed the > > mount-point="/ecommerce" to mount-point="/" > in the /ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml > > > If I have the sliderindex.html under system path > /ofbiz14/specialpurpose/ecommerce/webapp/ecommerce > > How would I define with a include in the main.flt file ???? > > Thanks, > -T > > On Mon, Jun 22, 2015 at 5:52 PM, Adrian Crum < > [hidden email]> wrote: > >> A path in a URL is not the same as a host file system path. >> >> The component: scheme is an OFBiz shortcut to a location on the host file >> system, it is not an HTTP URL. >> >> Adrian Crum >> Sandglass Software >> www.sandglass-software.com >> >> On 6/22/2015 2:49 PM, Tom Running wrote: >> >>> I am a bit confused with the path. >>> >>> >>> ********************* This is what I have before changed the >>> mount-point="/" ************* >>> >>> <!Doctype html> >>> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > >>> </html> >>> >>> >>> What should the new path be defined as? >>> <#include "component://sliderindex.html" > >>> >>> Thanks, >>> -Tom >>> >>> >>> On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[hidden email]> >>> wrote: >>> >>> I got it to work now for port 80. >>>> >>>> These are the files that I modified. >>>> >>>> *********Change Port 8080 t0 80 files **************************** >>>> /root/app1/ofbiz14/framework/webapp/config/url.properties >>>> /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml >>>> /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml >>>> >>>> Thank you for your help, >>>> -T >>>> >>>> On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> >>>> wrote: >>>> >>>> Thanks Mandeep, >>>>> >>>>> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >>>>> >>>>> Then I can access to the ecommerce website. >>>>> >>>>> >>>>> But when I change it to port 80 in the url.properties and changed the >>>>> ofbiz-component.xml) to "/" >>>>> I can not get access to the ecommerce website. >>>>> >>>>> >>>>> What am I missing. >>>>> >>>>> Here are my configuration: >>>>> >>>>> **********/ofbiz14/framework/webapp/config/url.properties*************** >>>>> # HTTP Port (Not Secure port) >>>>> port.http=80 >>>>> force.http.host= >>>>> >>>>> >>>>> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >>>>> <webapp name="ecommerce" >>>>> title="eCommerce" >>>>> server="default-server" >>>>> location="webapp/ecommerce" >>>>> mount-point="/" >>>>> app-bar-display="false"/> >>>>> >>>>> >>>>> >>>>> >>>>> Thanks, >>>>> -T >>>>> >>>>> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu < >>>>> [hidden email] >>>>> >>>>>> wrote: >>>>>> >>>>> >>>>> Change the port in url.properties to 80 and set mount point of your >>>>>> ecommerce component (ofbiz-component.xml) to "/". >>>>>> port.http=80 >>>>>> >>>>>> For production deployments it's always better to use virtual hosts >>>>>> configured in your apache HTTPD config file. >>>>>> >>>>>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>>>>> wrote: >>>>>> >>>>>> I need the ecommerce website to run on port 80 with a shorter URL. >>>>>>> >>>>>>> How to change this URL >>>>>>> >>>>>>> http://erp1.test.com:8080/ecommerce/control/main >>>>>>> >>>>>>> To >>>>>>> >>>>>>> http://erp1.test.com >>>>>>> >>>>>>> Permanently >>>>>>> >>>>>>> >>>>>>> Thanks, >>>>>>> -T >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>> >>> > |
What you said is completely make sense.
I did make a changed as a result of the following. I want to change this URL http://erp1.test.com:8080/ecommerce/control/main To http://erp1.test.com Permanently And the suggestion was to make the following changes and I did. I changed the following from mount-point="/ecommerce" to mount-point="/" in the /ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml Thanks, -T On Mon, Jun 22, 2015 at 8:21 PM, Adrian Crum < [hidden email]> wrote: > FreeMarker is not aware of OFBiz port settings, therefore it is not > affected by them. A path to a file is a path to a file, regardless of HTTP > port settings. The two are not related in any way. > > I don't know why the OFBiz component: scheme would stop working when you > change port settings, and it is highly unlikely that a port change was the > cause. Perhaps you changed something else to make it stop working. > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > On 6/22/2015 4:24 PM, Tom Running wrote: > >> Adrian, >> >> I think ? I might understand what you are saying ???? Not 100% when >> things doesn't make sense yet.... I don't know why the old host file >> system path would not work. >> >> ***** old information in the main.flt before the mount changed in the >> ofbiz-component.xml ******** >> >> <!Doctype html> >> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > >> </html> >> >> It is No longer working when I changed the >> >> mount-point="/ecommerce" to mount-point="/" >> in the /ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml >> >> >> If I have the sliderindex.html under system path >> /ofbiz14/specialpurpose/ecommerce/webapp/ecommerce >> >> How would I define with a include in the main.flt file ???? >> >> Thanks, >> -T >> >> On Mon, Jun 22, 2015 at 5:52 PM, Adrian Crum < >> [hidden email]> wrote: >> >> A path in a URL is not the same as a host file system path. >>> >>> The component: scheme is an OFBiz shortcut to a location on the host file >>> system, it is not an HTTP URL. >>> >>> Adrian Crum >>> Sandglass Software >>> www.sandglass-software.com >>> >>> On 6/22/2015 2:49 PM, Tom Running wrote: >>> >>> I am a bit confused with the path. >>>> >>>> >>>> ********************* This is what I have before changed the >>>> mount-point="/" ************* >>>> >>>> <!Doctype html> >>>> <#include "component://ecommerce/webapp/ecommerce/sliderindex.html" > >>>> </html> >>>> >>>> >>>> What should the new path be defined as? >>>> <#include "component://sliderindex.html" > >>>> >>>> Thanks, >>>> -Tom >>>> >>>> >>>> On Mon, Jun 22, 2015 at 5:39 PM, Tom Running <[hidden email]> >>>> wrote: >>>> >>>> I got it to work now for port 80. >>>> >>>>> >>>>> These are the files that I modified. >>>>> >>>>> *********Change Port 8080 t0 80 files **************************** >>>>> /root/app1/ofbiz14/framework/webapp/config/url.properties >>>>> /root/app1/ofbiz14/framework/catalina/ofbiz-component.xml >>>>> /root/app1/ofbiz14/specialpurpose/jetty/ofbiz-component.xml >>>>> >>>>> Thank you for your help, >>>>> -T >>>>> >>>>> On Mon, Jun 22, 2015 at 5:09 PM, Tom Running <[hidden email]> >>>>> wrote: >>>>> >>>>> Thanks Mandeep, >>>>> >>>>>> >>>>>> If I left it at port 8080 and changed the ofbiz-component.xml) to "/". >>>>>> >>>>>> Then I can access to the ecommerce website. >>>>>> >>>>>> >>>>>> But when I change it to port 80 in the url.properties and changed the >>>>>> ofbiz-component.xml) to "/" >>>>>> I can not get access to the ecommerce website. >>>>>> >>>>>> >>>>>> What am I missing. >>>>>> >>>>>> Here are my configuration: >>>>>> >>>>>> >>>>>> **********/ofbiz14/framework/webapp/config/url.properties*************** >>>>>> # HTTP Port (Not Secure port) >>>>>> port.http=80 >>>>>> force.http.host= >>>>>> >>>>>> >>>>>> *****/ofbiz14/specialpurpose/ecommerce/ofbiz-component.xml ******** >>>>>> <webapp name="ecommerce" >>>>>> title="eCommerce" >>>>>> server="default-server" >>>>>> location="webapp/ecommerce" >>>>>> mount-point="/" >>>>>> app-bar-display="false"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Thanks, >>>>>> -T >>>>>> >>>>>> On Mon, Jun 22, 2015 at 3:55 PM, Mandeep Sidhu < >>>>>> [hidden email] >>>>>> >>>>>> wrote: >>>>>>> >>>>>>> >>>>>> Change the port in url.properties to 80 and set mount point of your >>>>>> >>>>>>> ecommerce component (ofbiz-component.xml) to "/". >>>>>>> port.http=80 >>>>>>> >>>>>>> For production deployments it's always better to use virtual hosts >>>>>>> configured in your apache HTTPD config file. >>>>>>> >>>>>>> On Mon, Jun 22, 2015 at 1:38 PM, Tom Running <[hidden email]> >>>>>>> wrote: >>>>>>> >>>>>>> I need the ecommerce website to run on port 80 with a shorter URL. >>>>>>> >>>>>>>> >>>>>>>> How to change this URL >>>>>>>> >>>>>>>> http://erp1.test.com:8080/ecommerce/control/main >>>>>>>> >>>>>>>> To >>>>>>>> >>>>>>>> http://erp1.test.com >>>>>>>> >>>>>>>> Permanently >>>>>>>> >>>>>>>> >>>>>>>> Thanks, >>>>>>>> -T >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>> >> |
Free forum by Nabble | Edit this page |