Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
i found the solution… so posting here so that other may get help…
just changed the mysite.conf with below lines:
NameVirtualHost *:80
<VirtualHost maindomain.com:80>
ServerName www.maindomain.com
ServerAlias maindomain.com
DocumentRoot /var/www/html/
ErrorLog /var/www/html/error.log
CustomLog /var/www/html/requests.log combined
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost otherdomain.com:80>
ServerName www.otherdomain.com
ServerAlias otherdomain.com
DocumentRoot /var/www/html/otherdomain.com
ErrorLog /var/www/html/otherdomain.com/error.log
CustomLog /var/www/html/otherdomain.com/requests.log combined
<Directory "/var/www/html/otherdomain.com">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>