Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Multisites Domain setup in SS2.4


Reply


4 Posts   1084 Views

Avatar
Cano

Community Member, 14 Posts

5 July 2010 at 10:18pm

Hi all, very new to Silverstripe stepping into the real world of CMS's rather than hacking my way through Wordpress!

I have setup Multisites fine and the drop-down option is showing, so far so good. but I cant access the subsite page, i just get a failed to open page error. Im not sure exactly how to set the subdomain up.

I want the site to be accessible through: http://subsite.localhost/mysite/

I have added the name of the subsite but have no idea what to type in the box below (see screenshot attached)

Any help would be massively appreciated.

Thanks,
Cano

Avatar
Willr

Forum Moderator, 5513 Posts

6 July 2010 at 10:04am

Have you setup the virtual hosts configuration on your server to point "http://subsite.localhost/mysite/" to the http://localhost/mysite/ folder? If its a subdomain (and on apache at least) you need a ServerAlias for the Virtual host record of mysite.

For localhost you may also have to edit your hosts file to point the subdomains to your localhost like the following

127.0.0.1   localhost
# add entries to hosts file for subsites
127.0.0.1   mobile.localhost

Avatar
Cano

Community Member, 14 Posts

22 July 2010 at 3:02am

Thanks for the help.

Avatar
DsX

Community Member, 178 Posts

15 January 2011 at 2:22pm

I am trying to do this for the mobile module...
I have setup the subdomain in Plesk, and followed these directions: http://www.fractalizer.ru/frpost_418/plesk-9-adding-a-subdomain-tp-custom-folder-inside-webroot/#codesyntax_1
changing a few paths as the conf folder was in a slightly different place for me...
I rebooted, and still m.mysite.com gives me a server test page.
Am I missing something... this really isn't my strength as I seldom have to do much as var as server config?