I'm a complete newbie when it comes to servers, so I need some help. Basically, I want to have a subdomain on my VPS. I'm not too concerned where the files reside, though of course I would like them separated if possible.
I found a <a href="http://brucewampler.wordpress.com/2009/02/28/adding-virtual-hosts-to-ubuntu-apache/" rel="nofollow">guide</a> to doing this that basically sums the procedure up in five steps:
<blockquote>
<ol>
<li>Create directories to host the content of a new virtual site.
<ol>
<li>Make a copy of the /etc/apache2/sites-available/defaults file with a site appropriate name.</li>
<li>Change the two /var/www/ entries to the actual directory of the new site.</li>
<li>Add the ServerName line with the real domain name you will be hosting.</li>
<li>Use a2ensite to enable the new site, and finally reload Apache2 so it knows about the new site</li>
</ol></li>
</ol>
</blockquote>
I tried all of this, but I can't get it to work. I didn't get any errors at any point during this process, but when I enter the address with the subdomain into my browser, I get a "Server not found" error.
The company that hosts my VPS has an admin page where I can set up subdomains. Stupid question: do I have to do reconfigure the DNS records or something while doing this, or is it likely that the problem is caused by something else?
Additional note: I followed a guide on howtoforge.com when setting up the server, which in hindsight may not have been the brightest move on my part. It is possible that I made a mistake there that is somehow affecting me now?
I found a <a href="http://brucewampler.wordpress.com/2009/02/28/adding-virtual-hosts-to-ubuntu-apache/" rel="nofollow">guide</a> to doing this that basically sums the procedure up in five steps:
<blockquote>
<ol>
<li>Create directories to host the content of a new virtual site.
<ol>
<li>Make a copy of the /etc/apache2/sites-available/defaults file with a site appropriate name.</li>
<li>Change the two /var/www/ entries to the actual directory of the new site.</li>
<li>Add the ServerName line with the real domain name you will be hosting.</li>
<li>Use a2ensite to enable the new site, and finally reload Apache2 so it knows about the new site</li>
</ol></li>
</ol>
</blockquote>
I tried all of this, but I can't get it to work. I didn't get any errors at any point during this process, but when I enter the address with the subdomain into my browser, I get a "Server not found" error.
The company that hosts my VPS has an admin page where I can set up subdomains. Stupid question: do I have to do reconfigure the DNS records or something while doing this, or is it likely that the problem is caused by something else?
Additional note: I followed a guide on howtoforge.com when setting up the server, which in hindsight may not have been the brightest move on my part. It is possible that I made a mistake there that is somehow affecting me now?