Difference between revisions of "Link Domain"

From TMM Wiki
Jump to navigationJump to search
 
(8 intermediate revisions by 5 users not shown)
Line 6: Line 6:
 
}}
 
}}
  
A link domain lets surfers join a site without appearing to leave that
+
== What is a Link Domain? ==
site.  Link domains are Apache server aliases of your NATS domain and
 
you can create as many of them as you want.
 
  
Before setting up a link domain, you need to create a sub-domain of your
+
Link Domains are used in [[NATS]] to let [[Ct#Surfer|surfers]] join a site without appearing to leave the site they were previously on. This is useful, as link domains can prevent surfers from being scared off when they are redirected to another URL when going through pages like the NATS pre-join form.  
site in DNS and point that sub-domain at your NATS server. For example,  
 
if your affiliate program name is affiliate_program.com and create the  
 
member domain member_site1.com would would need a link domain join.member_site1.com.
 
Ask your host if you need help with this step.
 
  
Now edit, or have your host edit, your Apache configuration.  Find the
+
Additionally, your link domain will set a cookie to track the surfer from when they click the affiliate link to when they sign up for the site they are on. This ensures that your tracking statistics will remain accurate, even if your affiliate's [[Getting_The_NATSCode|NATS Code]] gets lost from the URL during the surfing process. As a result, it is important to set the correct link domain at the beginning of your tour-- otherwise, a surfer will not get tracked properly if the NATS Code is lost.
virtual host declaration for your NATS domain and add the following
+
 
line in the VirtualHost section:
+
Link domains are Apache server aliases of your [[NATS]] domain, and you can create as many of them as you choose.
 +
 
 +
== Setting Up a Link Domain ==
 +
=== Configuring Your Server ===
 +
'''Note: This step is not necessary if your tour is on the same server as your [[NATS]] install. If your tour is on a different server, you should use the following instructions. If your tour is on the same server, skip to [[#Adding Your Link Domain|Adding Your Link Domain]].
 +
 
 +
Before you begin setting up a link domain, you will first need to create a sub-domain of your site in DNS and point that new sub-domain at your [[NATS]] server.
 +
 
 +
For example, assume that your affiliate program domain is ''affiliate_program.com'' and the member site domain you are working with is ''member_site.com''. In this scenario, you would need a link domain -- ''join.member_site.com'' -- which will point to the same place as ''affiliate_program.com''
 +
 
 +
If you need help setting up this step, you will need to ask your server host for assistance.
 +
 
 +
=== Adding Your Link Domain ===
 +
 
 +
To continue configuring your new Link Domain, you will need to edit your Apache configuration. This can either be done by you, or by your server host. In your Apache configuration, find the virtual host declaration for your [[NATS]] domain. When you have found that, add the following line to your ''VirtualHost'' section:
  
 
<pre>
 
<pre>
Line 27: Line 35:
  
 
<pre>
 
<pre>
<VirtualHost 000.000.000.000>
+
<VirtualHost *:80>
 
   ServerName affiliate_program.com
 
   ServerName affiliate_program.com
   ServerAlias join.member_site1.com
+
  ServerAlias *.affiliate_program.com
 +
   ServerAlias join.member_site.com
 
   ServerAlias join.member_site2.com
 
   ServerAlias join.member_site2.com
 
   ServerAlias join.member_site3.com
 
   ServerAlias join.member_site3.com
Line 39: Line 48:
 
</VirtualHost>
 
</VirtualHost>
 
</pre>
 
</pre>
 +
 +
Once all these steps have been completed, your new link domain should be configured and ready for use.
  
 
[[Category:Also NATS4 Article]]
 
[[Category:Also NATS4 Article]]
 +
[[Category:NATS4 Setup]]

Latest revision as of 18:01, 6 May 2015

NATS 4
NATS Setup
Post-Installation Steps
Apache Configuration
MySQL Settings
Creating Admin Accounts
Multiple Server Setup
Using Memcached for Caching
File Upload Setup
Link Domain
HTTPS Setup
NATS4 Files and Directories
NATS4 Go Live Checklist
NATS3 to NATS4 Going Live Checklist
Moving NATS4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
NATS 3
Setup
Apache Configuration
MySQL Settings
Creating Admin Accounts
File Upload Setup
Link Domain
NATS3 Files and Directories
NATS Go Live Checklist
Moving NATS3

What is a Link Domain?

Link Domains are used in NATS to let surfers join a site without appearing to leave the site they were previously on. This is useful, as link domains can prevent surfers from being scared off when they are redirected to another URL when going through pages like the NATS pre-join form.

Additionally, your link domain will set a cookie to track the surfer from when they click the affiliate link to when they sign up for the site they are on. This ensures that your tracking statistics will remain accurate, even if your affiliate's NATS Code gets lost from the URL during the surfing process. As a result, it is important to set the correct link domain at the beginning of your tour-- otherwise, a surfer will not get tracked properly if the NATS Code is lost.

Link domains are Apache server aliases of your NATS domain, and you can create as many of them as you choose.

Setting Up a Link Domain

Configuring Your Server

Note: This step is not necessary if your tour is on the same server as your NATS install. If your tour is on a different server, you should use the following instructions. If your tour is on the same server, skip to Adding Your Link Domain.

Before you begin setting up a link domain, you will first need to create a sub-domain of your site in DNS and point that new sub-domain at your NATS server.

For example, assume that your affiliate program domain is affiliate_program.com and the member site domain you are working with is member_site.com. In this scenario, you would need a link domain -- join.member_site.com -- which will point to the same place as affiliate_program.com

If you need help setting up this step, you will need to ask your server host for assistance.

Adding Your Link Domain

To continue configuring your new Link Domain, you will need to edit your Apache configuration. This can either be done by you, or by your server host. In your Apache configuration, find the virtual host declaration for your NATS domain. When you have found that, add the following line to your VirtualHost section:

ServerAlias join.member_site1.com

For example:

<VirtualHost *:80>
  ServerName affiliate_program.com
  ServerAlias *.affiliate_program.com
  ServerAlias join.member_site.com
  ServerAlias join.member_site2.com
  ServerAlias join.member_site3.com
  DocumentRoot /path/to/nats/www
  <Directory /path/to/nats/www>
    Options FollowSymLinks
    AllowOverride All
  </Directory>
</VirtualHost>

Once all these steps have been completed, your new link domain should be configured and ready for use.