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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Try to understand the background of the subsites module


Go to End


11 Posts   9394 Views

Avatar
keeny

Community Member, 48 Posts

11 November 2008 at 2:30am

Edited: 11/11/2008 2:32am

ewonde, I found your post very helpful in getting subsites installed. Here are the steps I've taken 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

Community Member, 48 Posts

13 November 2008 at 8:31pm

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

Forum Moderator, 801 Posts

29 November 2008 at 8:42pm

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 :)

Go to Top