title: How do I change the root directory of an Apache server?
body: <p>How can I change the document root of the Apache server? I basically want <code>localhost</code> to come from <code>/users/spencer/projects</code> directory instead of <code>/var/www</code>.</p>
  <hr/>
  <p>I ended up figuring it out. Some suggested I change the <code>httpd.conf</code> file, but I ended up finding a file in <code>/etc/apache2/sites-available/default</code> and changed the root directory from <code>/var/www</code> to <code>/home/myusername/projects_folder</code> and that worked.</p>