Jump to content

Multisite Error


Broxden
 Share

Recommended Posts

Hello

I am trying to setup multi sites in accordance with this article - https://processwire.com/api/modules/multi-site-support/

I am using option 1, multiple sites with multiple databases. I have created a new processwire installation at http://broxden.biz/tmp and it works ok. I have created a folder called site-starter1 which is in the root of broxden.biz and I have copied the files from the site folder of my /tmp installation to that folder.

I have moved the index.config.php file from the wire folder to the root level and I have edited it as follows:

function ProcessWireHostSiteConfig() {

        return array(

                /*
                 * Some Examples (you should remove/replace them if used).
		 * Just note that the values must begin with 'site-'.
                 *
                 */
                 'startup-juice.co.uk' => 'site-suj',
                 'starter.broxden.biz' => 'site-starter',
                 'starter1.broxden.biz' => 'site-starter1',
                 'foundation6.broxden.biz' => 'site-foundation6',
	         'guesthouse.broxden.biz' => 'site-guesthouse',

		/*
		 * Default for all others (typically /site/)
	 	 *
		 */
		'*' => 'site',

                );

}

I have also created a subdomain in cpanel for each of the subdomains listed above pointing to the various sub-folders.

When I try to access starter1.broxden.biz, I get the following:

---

Forbidden

You don't have permission to access / on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

---

Have I missed something out? Any suggestions gratefully received.

John

Link to comment
Share on other sites

I have also created a subdomain in cpanel for each of the subdomains listed above pointing to the various sub-folders.

Your subdomains should point to the same document root where all the ProcessWire files are in (.htaccess, index.php, site, site-starter1 etc.), not to the site folders

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 2 years later...
On 12/1/2015 at 11:08 AM, Wanze said:

Your subdomains should point to the same document root where all the ProcessWire files are in (.htaccess, index.php, site, site-starter1 etc.), not to the site folders

Thank you ? I was two days that I was working on this!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...