How to attach my domain name to my server IP address (Apache)
apache, dns, hosting
Solution
<VirtualHost 109.201.175.107:80>
ServerName example1.com:80
ServerAlias www.example1.com
//other options
ServerAdmin Email Id
DocumentRoot /home/localname/www
# Other directives here
ErrorLog Physical path to error log folder
</VirtualHost>
Please Check this for details http://bytes.com/serveradministration/webservers/apache/virtual-hosting/app/dynamic_static_router.html
Problem
for example I have a domain name www.example1.com and I have in my apache conf this code: ``` <VirtualHost 109.201.175.107:80> DocumentRoot /home/localname/www ServerName www.example1.com # Other directives here </VirtualHost> ``` in the virtual host I wrote my ip and then I attach it to the ServerName is that right?, but anyway when I open the www.example1.com it shows my an error 404, or maybe I need to change the ip address that is attached the domain name, can you tell me step by step what I need to do, I haved searched all the google but didn't understand.