You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by varun bhansaly <vb...@gmail.com> on 2011/06/10 08:53:43 UTC

Re: multiple domains at the root location

Hi Hans,

We've a similar requirement to host 2 websites and backend applications on a
single instance of ofbiz-10.04 on EC2.
The websites have to be mounted on mounted on root.
We are ready with the first website, www.website1.com.
Website1 will be accessible at www.website1.com & backend applications will
be accessible at ofbiz.mycompany.com
We've configured the DNS settings and currently both these URLs point to the
same IP address.

We've applied virtual host settings in
hot-deploy/website1/ofbiz-component.xml &
framework/images/ofbiz-component.xml
We've also applied your changes from revision 1081692

Though theres a problem when we try to access ofbiz.mycompany.com, it
redirects to www.website1.com

If you have a tip, please let us know.

On Tue, Mar 15, 2011 at 3:01 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:

> This function was already in OFbiz but it did not work anymore...
>
> fixed in revision 1081692.
>
> You can use multiple <web-apps with the same mount-point however with
> different <virtual-host host-name specs"
>
> Regards,
> Hans
>
> On Tue, 2011-03-15 at 13:35 +0700, Hans Bakker wrote:
> > perhaps some extra info, we are using the Amazon ec2 loadbalancer as
> > frontend (decrypting ssl) and pass on directly to the ofbiz system.
> >
> > Raj already suggested to use apache for that, but apache is not there
> > and we would like to do this directly in OFBiz.
> >
> > Regards,
> > Hans
> >
> >
> > On Tue, 2011-03-15 at 13:03 +0700, Hans Bakker wrote:
> > > May i have your opinion?
> > >
> > > We have the requirement to run several different ecommerce domainnames
> > > as a root application.
> > >
> > > I know we had a domain name in the webapp definition in
> > > ofbiz-component.xml, but that was removed at a certain point.
> > >
> > > Any suggestions how to implement this?
> > > Perhaps using the website entity? and using the webapp mount point
> > > internally?
> > >
> > > thanks in advance for your suggestions....
> > > Regards,
> > > Hans
> >
>
> --
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Myself on twitter: http://twitter.com/hansbak
> Antwebsystems.com: Quality services for competitive rates.
>
>


-- 
Regards,
Varun Bhansaly

Re: multiple domains at the root location

Posted by varun bhansaly <vb...@gmail.com>.
All these settings work fine on our non EC2 environment (with ofbiz-10.04)
but NOT in EC2 production.
Anyways thanks for your help.

On Fri, Jun 10, 2011 at 1:17 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:

> Can you please also try this on the trunk version? We got that working
> here....
>
> Regards,
> Hans
>
> On Fri, 2011-06-10 at 12:47 +0530, varun bhansaly wrote:
> > Hi Hans,
> >
> > Thanks for your response.
> > I've made settings suggested by you in Store > website > http port and
> https
> > port, it did not work.
> > When I access ofbiz.mycompany.com, it still takes me to www.website1.com
> >
> > Also let me correct myself, when I try to access ofbiz.mycompany.com,
> ofbiz
> > serves the same content as it serves for www.website1.com and NOT
> re-directs
> > as mentioned earlier.
> >
> > On Fri, Jun 10, 2011 at 12:34 PM, Hans Bakker <
> mailinglist@antwebsystems.com
> > > wrote:
> >
> > > hi varun
> > >
> > > also make sure your domains are set in the related website entity:
> > > content -> websites -> select website -> update http and https fields
> > >
> > > for others, the related blog is at:
> > >
> > >
> http://www.antwebsystems.com/control/ViewBlogArticle?contentId=18704&blogContentId=AWS_BLOG
> > >
> > > Regards,
> > > Hans
> > >
> > >
> > > --
> > > Ofbiz on twitter: http://twitter.com/apache_ofbiz
> > > Myself on twitter: http://twitter.com/hansbak
> > > Antwebsystems.com: Quality services for competitive rates.
> > >
> > >
> > > On Fri, 2011-06-10 at 12:23 +0530, varun bhansaly wrote:
> > > > Hi Hans,
> > > >
> > > > We've a similar requirement to host 2 websites and backend
> applications
> > > on a
> > > > single instance of ofbiz-10.04 on EC2.
> > > > The websites have to be mounted on mounted on root.
> > > > We are ready with the first website, www.website1.com.
> > > > Website1 will be accessible at www.website1.com & backend
> applications
> > > will
> > > > be accessible at ofbiz.mycompany.com
> > > > We've configured the DNS settings and currently both these URLs point
> to
> > > the
> > > > same IP address.
> > > >
> > > > We've applied virtual host settings in
> > > > hot-deploy/website1/ofbiz-component.xml &
> > > > framework/images/ofbiz-component.xml
> > > > We've also applied your changes from revision 1081692
> > > >
> > > > Though theres a problem when we try to access ofbiz.mycompany.com,
> it
> > > > redirects to www.website1.com
> > > >
> > > > If you have a tip, please let us know.
> > > >
> > > > On Tue, Mar 15, 2011 at 3:01 PM, Hans Bakker
> > > > <ma...@antwebsystems.com>wrote:
> > > >
> > > > > This function was already in OFbiz but it did not work anymore...
> > > > >
> > > > > fixed in revision 1081692.
> > > > >
> > > > > You can use multiple <web-apps with the same mount-point however
> with
> > > > > different <virtual-host host-name specs"
> > > > >
> > > > > Regards,
> > > > > Hans
> > > > >
> > > > > On Tue, 2011-03-15 at 13:35 +0700, Hans Bakker wrote:
> > > > > > perhaps some extra info, we are using the Amazon ec2 loadbalancer
> as
> > > > > > frontend (decrypting ssl) and pass on directly to the ofbiz
> system.
> > > > > >
> > > > > > Raj already suggested to use apache for that, but apache is not
> there
> > > > > > and we would like to do this directly in OFBiz.
> > > > > >
> > > > > > Regards,
> > > > > > Hans
> > > > > >
> > > > > >
> > > > > > On Tue, 2011-03-15 at 13:03 +0700, Hans Bakker wrote:
> > > > > > > May i have your opinion?
> > > > > > >
> > > > > > > We have the requirement to run several different ecommerce
> > > domainnames
> > > > > > > as a root application.
> > > > > > >
> > > > > > > I know we had a domain name in the webapp definition in
> > > > > > > ofbiz-component.xml, but that was removed at a certain point.
> > > > > > >
> > > > > > > Any suggestions how to implement this?
> > > > > > > Perhaps using the website entity? and using the webapp mount
> point
> > > > > > > internally?
> > > > > > >
> > > > > > > thanks in advance for your suggestions....
> > > > > > > Regards,
> > > > > > > Hans
> > > > > >
> > > > >
> > > > > --
> > > > > Ofbiz on twitter: http://twitter.com/apache_ofbiz
> > > > > Myself on twitter: http://twitter.com/hansbak
> > > > > Antwebsystems.com: Quality services for competitive rates.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
> --
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Myself on twitter: http://twitter.com/hansbak
> Antwebsystems.com: Quality services for competitive rates.
>
>


-- 
Regards,
Varun Bhansaly

Re: multiple domains at the root location

Posted by Hans Bakker <ma...@antwebsystems.com>.
Can you please also try this on the trunk version? We got that working
here....

Regards,
Hans

On Fri, 2011-06-10 at 12:47 +0530, varun bhansaly wrote:
> Hi Hans,
> 
> Thanks for your response.
> I've made settings suggested by you in Store > website > http port and https
> port, it did not work.
> When I access ofbiz.mycompany.com, it still takes me to www.website1.com
> 
> Also let me correct myself, when I try to access ofbiz.mycompany.com, ofbiz
> serves the same content as it serves for www.website1.com and NOT re-directs
> as mentioned earlier.
> 
> On Fri, Jun 10, 2011 at 12:34 PM, Hans Bakker <mailinglist@antwebsystems.com
> > wrote:
> 
> > hi varun
> >
> > also make sure your domains are set in the related website entity:
> > content -> websites -> select website -> update http and https fields
> >
> > for others, the related blog is at:
> >
> > http://www.antwebsystems.com/control/ViewBlogArticle?contentId=18704&blogContentId=AWS_BLOG
> >
> > Regards,
> > Hans
> >
> >
> > --
> > Ofbiz on twitter: http://twitter.com/apache_ofbiz
> > Myself on twitter: http://twitter.com/hansbak
> > Antwebsystems.com: Quality services for competitive rates.
> >
> >
> > On Fri, 2011-06-10 at 12:23 +0530, varun bhansaly wrote:
> > > Hi Hans,
> > >
> > > We've a similar requirement to host 2 websites and backend applications
> > on a
> > > single instance of ofbiz-10.04 on EC2.
> > > The websites have to be mounted on mounted on root.
> > > We are ready with the first website, www.website1.com.
> > > Website1 will be accessible at www.website1.com & backend applications
> > will
> > > be accessible at ofbiz.mycompany.com
> > > We've configured the DNS settings and currently both these URLs point to
> > the
> > > same IP address.
> > >
> > > We've applied virtual host settings in
> > > hot-deploy/website1/ofbiz-component.xml &
> > > framework/images/ofbiz-component.xml
> > > We've also applied your changes from revision 1081692
> > >
> > > Though theres a problem when we try to access ofbiz.mycompany.com, it
> > > redirects to www.website1.com
> > >
> > > If you have a tip, please let us know.
> > >
> > > On Tue, Mar 15, 2011 at 3:01 PM, Hans Bakker
> > > <ma...@antwebsystems.com>wrote:
> > >
> > > > This function was already in OFbiz but it did not work anymore...
> > > >
> > > > fixed in revision 1081692.
> > > >
> > > > You can use multiple <web-apps with the same mount-point however with
> > > > different <virtual-host host-name specs"
> > > >
> > > > Regards,
> > > > Hans
> > > >
> > > > On Tue, 2011-03-15 at 13:35 +0700, Hans Bakker wrote:
> > > > > perhaps some extra info, we are using the Amazon ec2 loadbalancer as
> > > > > frontend (decrypting ssl) and pass on directly to the ofbiz system.
> > > > >
> > > > > Raj already suggested to use apache for that, but apache is not there
> > > > > and we would like to do this directly in OFBiz.
> > > > >
> > > > > Regards,
> > > > > Hans
> > > > >
> > > > >
> > > > > On Tue, 2011-03-15 at 13:03 +0700, Hans Bakker wrote:
> > > > > > May i have your opinion?
> > > > > >
> > > > > > We have the requirement to run several different ecommerce
> > domainnames
> > > > > > as a root application.
> > > > > >
> > > > > > I know we had a domain name in the webapp definition in
> > > > > > ofbiz-component.xml, but that was removed at a certain point.
> > > > > >
> > > > > > Any suggestions how to implement this?
> > > > > > Perhaps using the website entity? and using the webapp mount point
> > > > > > internally?
> > > > > >
> > > > > > thanks in advance for your suggestions....
> > > > > > Regards,
> > > > > > Hans
> > > > >
> > > >
> > > > --
> > > > Ofbiz on twitter: http://twitter.com/apache_ofbiz
> > > > Myself on twitter: http://twitter.com/hansbak
> > > > Antwebsystems.com: Quality services for competitive rates.
> > > >
> > > >
> > >
> > >
> >
> >
> >
> 
> 

-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.


Re: multiple domains at the root location

Posted by varun bhansaly <vb...@gmail.com>.
Hi Hans,

Thanks for your response.
I've made settings suggested by you in Store > website > http port and https
port, it did not work.
When I access ofbiz.mycompany.com, it still takes me to www.website1.com

Also let me correct myself, when I try to access ofbiz.mycompany.com, ofbiz
serves the same content as it serves for www.website1.com and NOT re-directs
as mentioned earlier.

On Fri, Jun 10, 2011 at 12:34 PM, Hans Bakker <mailinglist@antwebsystems.com
> wrote:

> hi varun
>
> also make sure your domains are set in the related website entity:
> content -> websites -> select website -> update http and https fields
>
> for others, the related blog is at:
>
> http://www.antwebsystems.com/control/ViewBlogArticle?contentId=18704&blogContentId=AWS_BLOG
>
> Regards,
> Hans
>
>
> --
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Myself on twitter: http://twitter.com/hansbak
> Antwebsystems.com: Quality services for competitive rates.
>
>
> On Fri, 2011-06-10 at 12:23 +0530, varun bhansaly wrote:
> > Hi Hans,
> >
> > We've a similar requirement to host 2 websites and backend applications
> on a
> > single instance of ofbiz-10.04 on EC2.
> > The websites have to be mounted on mounted on root.
> > We are ready with the first website, www.website1.com.
> > Website1 will be accessible at www.website1.com & backend applications
> will
> > be accessible at ofbiz.mycompany.com
> > We've configured the DNS settings and currently both these URLs point to
> the
> > same IP address.
> >
> > We've applied virtual host settings in
> > hot-deploy/website1/ofbiz-component.xml &
> > framework/images/ofbiz-component.xml
> > We've also applied your changes from revision 1081692
> >
> > Though theres a problem when we try to access ofbiz.mycompany.com, it
> > redirects to www.website1.com
> >
> > If you have a tip, please let us know.
> >
> > On Tue, Mar 15, 2011 at 3:01 PM, Hans Bakker
> > <ma...@antwebsystems.com>wrote:
> >
> > > This function was already in OFbiz but it did not work anymore...
> > >
> > > fixed in revision 1081692.
> > >
> > > You can use multiple <web-apps with the same mount-point however with
> > > different <virtual-host host-name specs"
> > >
> > > Regards,
> > > Hans
> > >
> > > On Tue, 2011-03-15 at 13:35 +0700, Hans Bakker wrote:
> > > > perhaps some extra info, we are using the Amazon ec2 loadbalancer as
> > > > frontend (decrypting ssl) and pass on directly to the ofbiz system.
> > > >
> > > > Raj already suggested to use apache for that, but apache is not there
> > > > and we would like to do this directly in OFBiz.
> > > >
> > > > Regards,
> > > > Hans
> > > >
> > > >
> > > > On Tue, 2011-03-15 at 13:03 +0700, Hans Bakker wrote:
> > > > > May i have your opinion?
> > > > >
> > > > > We have the requirement to run several different ecommerce
> domainnames
> > > > > as a root application.
> > > > >
> > > > > I know we had a domain name in the webapp definition in
> > > > > ofbiz-component.xml, but that was removed at a certain point.
> > > > >
> > > > > Any suggestions how to implement this?
> > > > > Perhaps using the website entity? and using the webapp mount point
> > > > > internally?
> > > > >
> > > > > thanks in advance for your suggestions....
> > > > > Regards,
> > > > > Hans
> > > >
> > >
> > > --
> > > Ofbiz on twitter: http://twitter.com/apache_ofbiz
> > > Myself on twitter: http://twitter.com/hansbak
> > > Antwebsystems.com: Quality services for competitive rates.
> > >
> > >
> >
> >
>
>
>


-- 
Regards,
Varun Bhansaly

Re: multiple domains at the root location

Posted by Hans Bakker <ma...@antwebsystems.com>.
hi varun

also make sure your domains are set in the related website entity:
content -> websites -> select website -> update http and https fields

for others, the related blog is at:
http://www.antwebsystems.com/control/ViewBlogArticle?contentId=18704&blogContentId=AWS_BLOG

Regards,
Hans


-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.


On Fri, 2011-06-10 at 12:23 +0530, varun bhansaly wrote:
> Hi Hans,
> 
> We've a similar requirement to host 2 websites and backend applications on a
> single instance of ofbiz-10.04 on EC2.
> The websites have to be mounted on mounted on root.
> We are ready with the first website, www.website1.com.
> Website1 will be accessible at www.website1.com & backend applications will
> be accessible at ofbiz.mycompany.com
> We've configured the DNS settings and currently both these URLs point to the
> same IP address.
> 
> We've applied virtual host settings in
> hot-deploy/website1/ofbiz-component.xml &
> framework/images/ofbiz-component.xml
> We've also applied your changes from revision 1081692
> 
> Though theres a problem when we try to access ofbiz.mycompany.com, it
> redirects to www.website1.com
> 
> If you have a tip, please let us know.
> 
> On Tue, Mar 15, 2011 at 3:01 PM, Hans Bakker
> <ma...@antwebsystems.com>wrote:
> 
> > This function was already in OFbiz but it did not work anymore...
> >
> > fixed in revision 1081692.
> >
> > You can use multiple <web-apps with the same mount-point however with
> > different <virtual-host host-name specs"
> >
> > Regards,
> > Hans
> >
> > On Tue, 2011-03-15 at 13:35 +0700, Hans Bakker wrote:
> > > perhaps some extra info, we are using the Amazon ec2 loadbalancer as
> > > frontend (decrypting ssl) and pass on directly to the ofbiz system.
> > >
> > > Raj already suggested to use apache for that, but apache is not there
> > > and we would like to do this directly in OFBiz.
> > >
> > > Regards,
> > > Hans
> > >
> > >
> > > On Tue, 2011-03-15 at 13:03 +0700, Hans Bakker wrote:
> > > > May i have your opinion?
> > > >
> > > > We have the requirement to run several different ecommerce domainnames
> > > > as a root application.
> > > >
> > > > I know we had a domain name in the webapp definition in
> > > > ofbiz-component.xml, but that was removed at a certain point.
> > > >
> > > > Any suggestions how to implement this?
> > > > Perhaps using the website entity? and using the webapp mount point
> > > > internally?
> > > >
> > > > thanks in advance for your suggestions....
> > > > Regards,
> > > > Hans
> > >
> >
> > --
> > Ofbiz on twitter: http://twitter.com/apache_ofbiz
> > Myself on twitter: http://twitter.com/hansbak
> > Antwebsystems.com: Quality services for competitive rates.
> >
> >
> 
>