VHOST between sites

We would like to create content links between sites without the links giving the out of scope-error. XP knows what hostname the different content paths have already from the vhost cfg. Shouldn’t that be possible?

Example:

site1.no → site2.no/kontakt-oss

vhost.cfg
mapping.site1.host = site1.no
mapping.site1.source = /
mapping.site1.target = /site/default/master/site1

mapping.site2.host = site2.no
mapping.site2.source = /
mapping.site2.target = /site/default/master/site2

1 Like

Hi Tommy.

The problem: Technically, you may define multiple vhosts pointing to the same site, so which to choose - also vhost files may be different across different servers in a cluster. Http vs https is also not given (even if stuff is mainly https nowaday).

The good news: We are actually working on a feature we call “baseUrl” as we speak. This let’s you to uniquely set the baseUrl for any given site. This let’s XP confidently create such links, even across content projects. And, you may override the persisted baseUrl value via configuration files. so it works smooth in test environments as well.

This will be shipped together with XP8.

2 Likes

@tsi Will this facilitate linking between layers as well?

I guess so, as long as you have the correct project/layer in your context.