Difference between revisions of "Link Domain"

From TMM Wiki
Jump to navigationJump to search
Line 30: Line 30:
 
<VirtualHost 000.000.000.000>
 
<VirtualHost 000.000.000.000>
 
   ServerName affiliate_program.com
 
   ServerName affiliate_program.com
   ServerName *.affiliate_program.com
+
   ServerAlias *.affiliate_program.com
 
   ServerAlias join.member_site.com
 
   ServerAlias join.member_site.com
 
   ServerAlias join.member_site2.com
 
   ServerAlias join.member_site2.com

Revision as of 10:12, 16 February 2010

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

A link domain lets surfers join a site without appearing to leave that 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 site in DNS and point that sub-domain at your NATS server. For example, if your affiliate program domain is affiliate_program.com and the member site domain is member_site.com. You would would need a link domain join.member_site1.com which points to the same place as affiliate_program.com.

Ask your host if you need help with this step.

Now edit, or have your host edit, your Apache configuration. Find the virtual host declaration for your NATS domain and add the following line in the VirtualHost section:

ServerAlias join.member_site1.com

For example:

<VirtualHost 000.000.000.000>
  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>