Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Multisites Domain setup in SS2.4

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

Page: 1
Go to End
Author Topic: 1020 Views
  • Cano
    Avatar
    Community Member
    14 Posts

    Multisites Domain setup in SS2.4 Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Multisites Domain setup in SS2.4 Link to this post

    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

  • Cano
    Avatar
    Community Member
    14 Posts

    Re: Multisites Domain setup in SS2.4 Link to this post

    Thanks for the help.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Multisites Domain setup in SS2.4 Link to this post

    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?

    1020 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.