I want to have identical websites running on immo-egypte.be and immo-egypte.nl, which both use the files from immo-egypte.com.

I tried using the Virtual Sites Module to set-up a condition which checks on hostname immo-egypte.be in order to load a virtual site. I might not have done this correctly since the Drupal Installation Wizard was loading when visiting the domain.

Is this how virtual sites is supposed to be used or am I trying something outside of the scope of this module? If not, how can I make this work properly?

Comments

chipway’s picture

Hi,

This is a use cae of Virtual Site. My owns were running fine until some days ago.

i open an issue for my case, and may be yours is related.

KathyIce’s picture

I had this problem too... I think the docs assume you have a subsite where all paths (aliases) are something along the lines of http://mymainsite.com/subsite/* - So, they tell you to define a condition for pages.

In my case, I want to run the same sites from the same base... as described above.
So I tried
1. defining a condition under Requirement:hostname -
2. selected "only on listed host names" and
3. entered myothersite.com as the hostname.
4. selected that condition for my virtual site.

It worked... I'm happy.

We are planning to have a number of different "faces" for our main site - so this module will make things much simpler for us to manage... or at least not as complicated. Thanks to the developer(s).

itkadmin’s picture

hello

we have our main site at example.com

We have successfully set up virtual sites so when a user goes to certain pages the virtual site kicks in.
i.e. example.com/virtual_site displays all the correct theme, content, menus etc.

I would like to set it up so that if the user types example2.com into the browser, the virtual site appears. I would also like example2.com to appear in the address bar when users are on the virtual site.

is this possible?

If so what do I need to do in drupal and what do I need to do on my webhost (we use C-Panel) so it knows where to direct example2.com? I tried setting up a forward where example2.com would forward to example.com/virtual_site but it didn't work.

thank-you

adamps’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Tidy up: closing very old support request that presumably is no longer relevant to the raiser. Please re-open if desired.