title: How set-up a domain?
body: <p>I've a problem with my domain.
  Recently I've purchased <strong>mydomain.com</strong> and I've configured DNS, by the control panel of my registrar, in record A the <strong>"*"</strong> and <strong>"www"</strong> point to my server ip. <em>(It's a home server with Win 7 Pro)</em>.
  The nameservers are default of my domain registrar.
  Now, I use AMMPS, and I've manually configured virtual host in httpd.conf &amp; httpd-vhosts.conf, and the situation is this:</p>
  
  <p><strong>In httpd.conf:</strong></p>
  
  <pre><code>&lt;VirtualHost 127.0.0.1:80&gt;
  &lt;Directory "C:/Program Files (x86)/Ampps/www/"&gt;
      Options FollowSymLinks Indexes
      AllowOverride All
      Order deny,allow
      allow from All
  &lt;/Directory&gt;
  ServerName localhost
  ServerAlias localhost 127.0.0.1
  ScriptAlias /cgi-bin/ "C:/Program Files (x86)/Ampps/www/cgi-bin/"
  DocumentRoot "C:/Program Files (x86)/Ampps/www/"
  ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/error.err"
  CustomLog "C:/Program Files (x86)/Ampps/apache/logs/access.log" combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>In httpd-vhosts.conf:</strong></p>
  
  <pre><code>#DO NOT EDIT, CREATED BY AMPPS
  
  
  #### mydomain.com VirtualHost ####
  
  &lt;VirtualHost *:80&gt;
  &lt;Directory "C:/Program Files (x86)/Ampps/www/mydomain.com"&gt;
      Options FollowSymLinks Indexes
      AllowOverride All
      Order deny,allow
      allow from All
  &lt;/Directory&gt;
  ServerName mydomain.com
  ServerAlias www.mydomain.com
  DocumentRoot "C:/Program Files (x86)/Ampps/www/mydomain.com"
  ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/mydomain.com_error.err"
  CustomLog "C:/Program Files (x86)/Ampps/apache/logs/mydomain.com_access.log" combined
  &lt;/VirtualHost&gt;
  
  
  ####################################
  </code></pre>
  
  <p>Now it's all right because when i type in the browser "localhost" it shows the folder www of AMPPS, and when I type www.mydomain.com it shows content of www/mydomain.com</p>
  
  <p>But, If I type in the browser mydomain.com <strong>without prefix www.</strong>, it shows the courtesy page of my domain registrar.</p>
  
  <p>How I can fix this? </p>