Difference between revisions of "Link Domain"
From TMM Wiki
Jump to navigationJump to searchm |
|||
Line 27: | Line 27: | ||
<pre> | <pre> | ||
<VirtualHost 000.000.000.000> | <VirtualHost 000.000.000.000> | ||
− | ServerName | + | ServerName affiliate_program.com |
− | ServerAlias join. | + | ServerAlias join.member_site1.com |
+ | ServerAlias join.member_site2.com | ||
+ | ServerAlias join.member_site3.com | ||
DocumentRoot /path/to/nats/www | DocumentRoot /path/to/nats/www | ||
− | ErrorLog logs/dummy-host. | + | ErrorLog logs/dummy-host.affiliate_program.com-error_log |
− | CustomLog logs/dummy-host. | + | CustomLog logs/dummy-host.affiliate_program.com-access_log common |
<Directory /path/to/nats/www> | <Directory /path/to/nats/www> | ||
Options FollowSymLinks | Options FollowSymLinks |
Revision as of 10:00, 16 February 2010
NATS 3
|
---|
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 you own example.com, create the subdomain join.example.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.example.com
For example:
<VirtualHost 000.000.000.000> ServerName affiliate_program.com ServerAlias join.member_site1.com ServerAlias join.member_site2.com ServerAlias join.member_site3.com DocumentRoot /path/to/nats/www ErrorLog logs/dummy-host.affiliate_program.com-error_log CustomLog logs/dummy-host.affiliate_program.com-access_log common <Directory /path/to/nats/www> Options FollowSymLinks AllowOverride All </Directory> </VirtualHost>