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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   7829 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