|

|
 | Add a Domain to Your Account |
To add a domain name to your Virtual Server there is a one-time $25 setup fee. This does not include any registration fees. Internet Advertising Solutions can register or transfer the domain for you at additional cost.
Step 1
Complete the Domain Registration/Transfer Form. If you only wish the domain to point to your server's home page and not a subdirectory you do not need to complete the steps below.
Step 2 (optional)
If you wish to have the new domain name point to a subdirectory, create the subdirectory under your /htdocs folder. For example if you're adding the domain newdomainname.com: /htdocs/newdomainname
You will also need to add a VirtualHost section to your httpd.conf file as shown below. The httpd.conf file can be found in the /usr/local/etc/httpd/conf folder on your virtual server.
<VirtualHost newdomainname.com www.newdomainname.com>
ServerAdmin webmaster@newdomainname.com
DocumentRoot /www/htdocs/newdomainname
ServerName www.newdomainname.com
</VirtualHost>
Step 3 (optional)
If you wish to have separate log files kept for the new domain, include the following two lines in the VirtualHost section of your httpd.conf shown in Step 2 above:
TransferLog logs/newdomainname_access
ErrorLog logs/newdomainname_error
So if your are pointing your new domain to a separate directory other than your home page, and you will be using separate log files, your VirtualHost section should look like this:
<VirtualHost newdomainname.com www.newdomainname.com>
ServerAdmin webmaster@newdomainname.com
DocumentRoot /www/htdocs/newdomainname
ServerName www.newdomainname.com
TransferLog logs/newdomainname_access
ErrorLog logs/newdomainname_error
</VirtualHost>
Important: Remember to type "restart_apache" at the UNIX shell prompt after making any changes to your httpd.conf file.
Step 4 (optional)
If you wish to have Urchin generate web traffic reports for the new domain, add a Report section to your Urchin config file at /usr/local/urchin/config
<Report>
ReportName: newdomainname.com
ReportDirectory: /usr/home/login/usr/local/etc/httpd/htdocs/_stats/newdomainname/
TransferLog: /usr/home/login/usr/local/etc/httpd/logs/access_log-newdomainname
</Report>
Important: Replace "login" with your Virtual Server login name.
Also you will need to add the following lines in your httpd.conf file, within the <===URCHIN VPS 3.309:Urchin VPS 3.309 start===> block (found towards the bottom of the httpd.conf file):
<Directory /usr/local/etc/httpd/htdocs/_stats/newdomainname>
AddHandler cgi-script .cgi
DirectoryIndex index.html index.cgi
Options FollowSymLinks ExecCGI
</Directory>
Important: Remember to type "restart_apache" at the UNIX shell prompt after making any changes to your httpd.conf file.
Urchin will generate a report for the new domain during its next run.
|