I have a running server machine at my work that hosts firstwebsite.com currently. I want to secondwebsite.com on the same machine. secondwebsite.com is hosted on godaddy. Is is possible to host the two websites on the same machine? I have added a htaccess file in etc/apache2/sites-enabled/ which is as follows:
<VirtualHost *:80>
ServerAdmin admin@secondwebsite.com
ServerName secondwebsite.com
ServerAlias secondwebsite.com
DocumentRoot /var/www/test/public_html
</VirtualHost>
I guess I have to change dns or cname in GoDaddy? Can you guys help me figure out this problem. Any help would be appreciate.Thank you so much.