Movatterモバイル変換


[0]ホーム

URL:


Edit Sidebar
Add Group
View Sidebar
This space has{{ pending_patches_count }} change(s) pending forreview.

Setup Multitenancy

Assuming that you've already got your first site running and you've performedtheproduction deployment steps, this section explains how to host your secondsite (and more). Your first site is automatically set as default site. You canchange it with the command,

bench use sitename

Port based multitenancy

You can create a new site and make run it on a different port (while the firstone runs on port 80).

  • Switch off DNS based multitenancy (once)

    bench config dns_multitenant off

  • Create a new site

    bench new-site site2name

  • Set port

    bench set-nginx-port site2name 82

  • Re generate nginx config

    bench setup nginx

  • Reload nginx

    sudo service nginx reload

DNS based multitenancy

You can name your sites as the hostnames that would resolve to it. Thus, all the sites you add to the bench would run on the same port and will be automatically selected based on the hostname.

To make a new site under DNS based multitenancy, perform the following steps.

  • Switch on DNS based multitenancy (once)

    bench config dns_multitenant on

  • Create a new site

    bench new-site site2name

  • Re generate nginx config

    bench setup nginx

  • Reload nginx

    sudo service nginx reload

Discard
Save
Was this article helpful?Give Feedback
Edit PageNew PageRevisionsPage Settings

Previous Page

Left

Next Page

Right

On this page

Review Changes← Back to Content
MessageStatusSpaceRaised ByLast update on



[8]ページ先頭

©2009-2025 Movatter.jp