Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A41C418C63 for ; Tue, 23 Jun 2015 00:13:45 +0000 (UTC) Received: (qmail 19011 invoked by uid 500); 23 Jun 2015 00:13:45 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 18978 invoked by uid 500); 23 Jun 2015 00:13:45 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 18965 invoked by uid 99); 23 Jun 2015 00:13:44 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 00:13:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 76346C124F for ; Tue, 23 Jun 2015 00:13:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.15 X-Spam-Level: **** X-Spam-Status: No, score=4.15 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLY=1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id xKiSyw2YORk9 for ; Tue, 23 Jun 2015 00:13:35 +0000 (UTC) Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com [209.85.160.170]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4A6E14540D for ; Tue, 23 Jun 2015 00:13:35 +0000 (UTC) Received: by ykfy125 with SMTP id y125so24629810ykf.1 for ; Mon, 22 Jun 2015 17:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oFe4cKINrkVeQjcLjosZW8/OCHdF3BbS5JagvZLRZ0Q=; b=ux4nB0zxlINBv77xdxZEkdKY/n6pOWGugku1s6JYDqex73G5jw8ntD+pM3P8D0XVhC LSJk8YzZqMu5JAOW1zzMYQOw8Xics4Hs7ZmEGRMQWaqnBsp/65pdtkYviWrLn7L4fwn3 HYUI5PockSwKOZEwgN4HyT6x3WttKQzAK1vx/eT2+V7bdo/2Xg4oG6AzN1fDZDvcZlPz CubY3WH/+m0Ars6Q59HyJMcOsXupZeE+Z4IVJ/puJWwMZOFXyiMi1+AFzyFyfA3lfD+h +OYPogC5CYEDh4W5O5Ngt6/UfGoXC/MKsUidxdD99CNi66PlULQglSfausKlfHOw4/Fg xdJg== MIME-Version: 1.0 X-Received: by 10.170.65.194 with SMTP id h185mr4274852ykh.88.1435018409623; Mon, 22 Jun 2015 17:13:29 -0700 (PDT) Received: by 10.13.239.199 with HTTP; Mon, 22 Jun 2015 17:13:29 -0700 (PDT) In-Reply-To: <55888392.1030705@sandglass-software.com> References: <55888392.1030705@sandglass-software.com> Date: Mon, 22 Jun 2015 20:13:29 -0400 Message-ID: Subject: Re: Change URL From: Tom Running To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary=001a1139c68a8d471e0519244266 --001a1139c68a8d471e0519244266 Content-Type: text/plain; charset=UTF-8 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? ********************************************************************************* 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 < adrian.crum@sandglass-software.com> 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="/" ************* >> >> >> <#include "component://ecommerce/webapp/ecommerce/sliderindex.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 >> 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 >>> 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 ******** >>>> >>> 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 < >>>> mandeep1985ster@gmail.com >>>> >>>>> 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 >>>>> 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 >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> --001a1139c68a8d471e0519244266--