multiple domains at the root location

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

multiple domains at the root location

hans_bakker
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.


Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

rajsaini
Hi Hans,

Best way is to use Apache HTTPd server as proxy and use the mod_jk or
mode_ajp_proxy module of Apache to connect to OFBiz server.

Thanks,

Raj

On Tuesday 15 March 2011 11:33 AM, 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

Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

hans_bakker
In reply to this post by hans_bakker
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.

Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

rajsaini
Other option could be to define multiple hosts in the
ofbiz-container.xml. I am not sure if the current xsd support but this
is how you do it in Tomcat. Tomcat supports virtual hosts and what you
looking for is virtual hosts at Tomcat level.

Raj

On Tuesday 15 March 2011 12:05 PM, 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

Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

hans_bakker
In reply to this post by hans_bakker
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.

Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

Varun Bhansaly
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
<[hidden email]>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
Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

hans_bakker
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
> <[hidden email]>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.
> >
> >
>
>


Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

Varun Bhansaly
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 <[hidden email]
> 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
> > <[hidden email]>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
Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

hans_bakker
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 <[hidden email]
> > 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
> > > <[hidden email]>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.

Reply | Threaded
Open this post in threaded view
|

Re: multiple domains at the root location

Varun Bhansaly
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
<[hidden email]>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 <
> [hidden email]
> > > 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
> > > > <[hidden email]>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