Difference between revisions of "Link Domain"
From TMM Wiki
Jump to navigationJump to searchLine 28: | Line 28: | ||
<pre> | <pre> | ||
<VirtualHost 000.000.000.000> | <VirtualHost 000.000.000.000> | ||
− | ServerName affiliate_program.com | + | ServerName affiliate_program.com |
− | ServerAlias join.member_site1.com | + | ServerAlias join.member_site1.com |
− | ServerAlias join.member_site2.com | + | ServerAlias join.member_site2.com |
− | ServerAlias join.member_site3.com | + | ServerAlias join.member_site3.com |
− | DocumentRoot /path/to/nats/www | + | DocumentRoot /path/to/nats/www |
− | ErrorLog logs/dummy-host.affiliate_program.com-error_log | + | ErrorLog logs/dummy-host.affiliate_program.com-error_log |
− | CustomLog logs/dummy-host.affiliate_program.com-access_log common | + | CustomLog logs/dummy-host.affiliate_program.com-access_log common |
− | <Directory /path/to/nats/www> | + | <Directory /path/to/nats/www> |
− | + | Options FollowSymLinks | |
− | + | AllowOverride All | |
− | </Directory> | + | </Directory> |
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
[[Category:Also NATS4 Article]] | [[Category:Also NATS4 Article]] |
Revision as of 10:04, 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 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 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 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>