> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/content-management/member-areas-and-tours/creating-a-members-area.md).

# Creating a Member's Area

*Article Topics:* [*Member Area*](https://docs.toomuchmedia.com/getting-started/common-topics/member-area.md)

## Adding a Member's Area

{% hint style="info" %}
**Please Note:** Member Authentication is done using Apache OpenIDC. You can configure these settings by following the guide found on [CMS Member Authentication](https://docs.toomuchmedia.com/content-management/member-areas-and-tours/creating-a-members-area/cms-member-authentication.md).
{% endhint %}

To set up a CMS Tour or Member Area, you will first need one of the sites set up in NATS.

See our [Creating a new Site in NATS](https://docs.toomuchmedia.com/nats-admin/sites/common-questions/creating-a-new-site-in-nats.md) article for a guide on what you will need to set your site up in NATS.

Setting up your Member Area first will ensure an easier process.

1\) Navigate to the Member Area and select “Add New.”

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FipW4V87mYhly6imX3sOs%2Fimage.png?alt=media&amp;token=893d6ac7-360c-4eb3-9dc3-3dd53e97df91" alt=""><figcaption></figcaption></figure>

2\) Add a **Member Area Name** and select a base **Theme** such as *Helpful Hands,* a great starting point for a modern pay site. A default **Channel** will automatically be created for the newly created Member Area.

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FFoWNhVo3msrrSx5vgEvD%2Fimage.png?alt=media&amp;token=8e5bc7e5-7225-49ad-a163-eb4ddc1059b7" alt=""><figcaption></figcaption></figure>

3\) Once the Member Area has been created, you'll be on the Setup Tab, where you can set details for the member area, such as the Server Location, Document Root, and Age Verification. Configuring these settings will help provide you with server configuration instructions later in the setup process.

All required fields will be denoted with a red "Details Missing Tag".

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FRrE6XO2ngjsWYq77B8mn%2Fimage.png?alt=media&amp;token=ccf64c25-62ab-4d3f-88ba-cbcc2359014f" alt=""><figcaption></figcaption></figure>

* **Server Location** - The server from which the Member's Area app will be served.
  * Local to NATS Server - The same server as your NATS install.
  * Remote - External Server.
* **URL -** The full URL for the Member Area.
* **Document Root -** The file path on the server to the document root for the Member Area.
* **Authentication Schema -** Used to Authenticate Members.
  * Apache with OpenID Connect Member Authentication - Authenticates members using OpenID Connect.
  * Public - Anyone can access your Member Area.
* **Age Verification -** Select between no age verification or Yoti Age Verification, which, if set up properly, will prompt members for age verification when they log in to the Member Area for the first time. You can also configure a Custom AVS URL to redirect members to your own age verification provider instead. See [Age Verification for CMS Member Areas](https://docs.toomuchmedia.com/getting-started/integrations/age-verification/cms-age-verification.md) for how to set either option up.

{% hint style="danger" %}
**Important:** Setting up Age Verification here does not require turning on the **Age Verification** setting in Configuration Admin > Surfer > Age Verification — that setting is for the member signup/join form and is unrelated to Member Area login verification. See [Age Verification for CMS Member Areas](https://docs.toomuchmedia.com/getting-started/integrations/age-verification/cms-age-verification.md) for details.
{% endhint %}

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FqaOXae6o4IPPBREx4kFD%2Fimage.png?alt=media&amp;token=371f10e6-81cd-4f10-8315-9c86e4e28bbb" alt=""><figcaption></figcaption></figure>

4\) Navigate to the General tab to view the Member Area Overview Page. Create a secret preview key with at least 20 characters and no symbols using your chosen password generator and insert it into the "Preview Secret" field.

{% hint style="info" %}
**Please Note:** The Preview Secret will be used in the URL when previewing a Theme, allowing you to send previews of Themes that you are working on to partners.
{% endhint %}

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FbEnFzEZHmxQAbCdL6hQM%2Fimage.png?alt=media&amp;token=40d0b5f7-4f57-4d8d-a58a-25616c2d2815" alt=""><figcaption></figcaption></figure>

5\) After setting the Preview Secret, you'll notice a warning near the "Login Redirect URL".

Here, you'll set the login page of an already created tour, usually in the form of **\<tourdomain>/login.** This is to ensure that anyone accessing the member area must log in first.

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FWqTDjyoHp08PwIjwGvN1%2Fimage.png?alt=media&amp;token=0e973e72-5c0e-4458-9880-7e858cf8b6da" alt=""><figcaption></figcaption></figure>

For information on creating a tour within the CMS, click [here](https://docs.toomuchmedia.com/content-management/member-areas-and-tours/creating-a-cms-tour.md).

6\) Return to the Server Setup tab, where you'll be presented with server configuration details specific to your Member's Area.

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2Fw0F6mubU6xTsLCpIUEOK%2Fimage.png?alt=media&amp;token=9e951821-ee19-49aa-9e20-5eec6a1dbb82" alt=""><figcaption></figcaption></figure>

It is at this point that you will want to contact your server host to configure the VirtualHost configuration with the sample provided in the **Sample Apache Virtualhost Config** section.

Additionally, you will want to ensure your host adds the following line to the configuration:

```
Alias "/natscms-app/config.json" "/home/cmsdemo/nats/cms_configs/<areaid>.json"
```

Where \<areaid> is the unique ID of the Member Area, which can be found on the General tab.

Example:

```
Alias "/natscms-app/config.json" "/home/cmsdemo/nats/cms_configs/1.json"
```

{% hint style="info" %}
**Remote Member Areas:** The line above is for a Member Area whose Server Location is Local to NATS Server. If the Server Location is **Remote**, the files you download from the Server Setup tab, including config.json, are extracted into your Document Root, so the line points to the config.json in your Document Root instead:

`Alias "/natscms-app/config.json" "<document root>/config.json"`

The Server Setup tab shows the full sample for your Server Location.
{% endhint %}

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FKY6SbUF5G4DnVCYTTFee%2Fimage.png?alt=media&amp;token=5fbe823f-c3e1-4f1e-8bfb-1d2f38e95cda" alt=""><figcaption></figcaption></figure>

7\) Navigate to the "**Login Rules**" tab and select the "Add New" button to create a new Login rule for **authentication**.

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2Fe1OQ7X9RmXin3o2O4yM5%2Fimage.png?alt=media&amp;token=b933df53-4042-4f17-8c79-ca41259d38fe" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important:** Creating the Authentication Rule allows Members who have signed up from a tour specified in the Rule Target access to this Member Area.
{% endhint %}

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FhqHrQ09XPrYUhMXiLq1P%2Fimage.png?alt=media&amp;token=b40118bd-c00b-4c30-9842-9ba19dcd33dc" alt=""><figcaption></figcaption></figure>

## Related Articles

{% content-ref url="/pages/G1ayp3FB8FRyOfJvPiAp" %}
[Member Areas and Tours](https://docs.toomuchmedia.com/content-management/member-areas-and-tours.md)
{% endcontent-ref %}

{% content-ref url="/pages/GdRXSOg33BCti9DITjdb" %}
[Member Area and Tour Details](https://docs.toomuchmedia.com/content-management/member-areas-and-tours/member-area-and-tour-details.md)
{% endcontent-ref %}
