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.

Archive

Our old forums are still available as a read-only archive.

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

Try to understand the background of the subsites module


Reply

11 Posts   6386 Views

Avatar
keeny

11 November 2008 at 2:30am (Last edited: 11 November 2008 2:32am), Community Member, 48 Posts

ewonde, I found your post very helpful in getting subsites installed. [url=http://www.keeny.co.uk/2008/11/install-silverstripe-subsites-module.html]Here are the steps I've taken[/url] so far.

Now that I have the subsites module installed, I can add subdomains, and can add pages to those subdomains in the CMS. Great!

But... I don't understand how to visit those pages. I know it should be something like:

http://subdomain1.localhost
http://subdomain2.localhost

I have silverstripe installed in my home www directory. In my case I visit the main site by going to:

http://localhost/~username/silverstripe/

What address should I be using to view the subsites?

Many Thanks,

Barry

Avatar
keeny

13 November 2008 at 8:31pm Community Member, 48 Posts

It turns out that by default Silverstripe doesn't resolve addresses of the form:

http://subdomain1.localhost/~username

Once I installed Silverstripe in my main apache Documents folder I could visit the subsites no problem. Well... once I added entries in my /etc/hosts file:

127.0.0.1   subdomain1.localhost
127.0.0.1   subdomain2.localhost

Avatar
Ingo

29 November 2008 at 8:42pm Forum Moderator, 801 Posts

In case it helps, I've recently extended the wiki docs on the subsites module a bit: http://doc.silverstripe.com/doku.php?id=modules:subsites

Feel free to add your findings there, either as FAQs or as more documentation paragraphs - it can be quite complex to grasp sometimes, so any documentation is welcome :)