Live Chat Software by Kayako |
Knowledgebase: Technical
Host Headers
Posted by - NA - on 23 August 2006 01:59 AM
|
|
We have a client with an existing website hosted in another location. He has uploaded the files to our webserver. He now wants to test the domain. However, since the domain is still pointed to the old location, we decided to create a dns to point to the hosted materials. For example: Actual domain is www.company.com (resolves to 202.91.163.60) Test dns is test.abccompany.com (resolves to 202.91.163.60) How do we map host headers so that OUR webserver will accept request for test.abccompany.com as well? As per source, http://forums.digitalpoint.com/showthread.php?p=211071 I've taken the following steps: On Master.dagupan.com I created an A record to point domain.bitstop.ph to the IP address of the webserver (for example: funchain.bitstop.ph resolves to 202.91.163.60) Log in via SSH to 202.91.163.60 and create a file at /home/httpd/vhosts/mydomain.com/conf/vhost.conf (using vi vhost.conf) and it contains the following text, nothing more: ServerAlias www.funchain.com ServerAlias funchain.bitstop.ph [esc] :x (to save) On the command prompt: /usr/local/psa/admin/bin/websrvmng -a -v I rebooted the machine via the command: Shutdown -r now | |
|
Comments (0)