title: Name server setup in XAMPP based server?
body: <p>I want to setup the apache virtual host in my server</p>
  
  <p>My registered Domain name is       www.abcd.com</p>
  
  <p>Name server1: NS1.ABCD.COM</p>
  
  <p>Name server2: NS2.ABCD.COM</p>
  
  <p>My static ip: 112.123.124.195</p>
  
  <p>I can access my website from the static ip address shown above, but now want to setup the vhost file to access this server from the www.abcd.com </p>
  
  <p>My current virtual host file is as following. Please help me to set up this file for accessing from the registered domain.</p>
  
  <pre><code>enter code here
  #
  # Virtual Hosts
  #
  # If you want to maintain multiple domains/hostnames on your
  # machine you can setup VirtualHost containers for them. Most configurations
  # use only name-based virtual hosts so the server doesn't need to worry about
  # IP addresses. This is indicated by the asterisks in the directives below.
  #
  # Please see the documentation at 
  # &lt;URL:http://httpd.apache.org/docs/2.2/vhosts/&gt;
  # for further details before you try to setup virtual hosts.
  #
  # You may use the command line option '-S' to verify your virtual host
  # configuration.
  
  #
  # Use name-based virtual hosting.
  #
  ##NameVirtualHost *:80
  
  #
  # VirtualHost example:
  # Almost any Apache directive may go into a VirtualHost container.
  # The first VirtualHost section is used for all requests that do not
  # match a ServerName or ServerAlias in any &lt;VirtualHost&gt; block.
  #
  ##&lt;VirtualHost *:80&gt;
      ##ServerAdmin postmaster@dummy-host.localhost
      ##DocumentRoot "G:/xampp/htdocs/dummy-host.localhost"
      ##ServerName dummy-host.localhost
      ##ServerAlias www.dummy-host.localhost
      ##ErrorLog "logs/dummy-host.localhost-error.log"
      ##CustomLog "logs/dummy-host.localhost-access.log" combined
  ##&lt;/VirtualHost&gt;
  
  ##&lt;VirtualHost *:80&gt;
      ##ServerAdmin postmaster@dummy-host2.localhost
      ##DocumentRoot "G:/xampp/htdocs/dummy-host2.localhost"
      ##ServerName dummy-host2.localhost
      ##ServerAlias www.dummy-host2.localhost
      ##ErrorLog "logs/dummy-host2.localhost-error.log"
      ##CustomLog "logs/dummy-host2.localhost-access.log" combined
  ##&lt;/VirtualHost&gt;
  
  enter code here
  </code></pre>