title: How can i move Apache localhost from /var/www to my mount directory
body: <p>I am new in ubuntu(and Linux) and have simple-lamer question.</p>
  
  <p>I have mounted directory /media/2A98EDD2ACA90087/WebProject/ and would like to move http:/localhost/ from var/www to /media/2A98EDD2ACA90087/WebProject/</p>
  
  <p>I have change sites-enabled/000-default and /etc/apache2/sites-available</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
  
      DocumentRoot /media/2A98EDD2ACA90087/WebProject
      &lt;Directory /&gt;
          Options FollowSymLinks
          AllowOverride None
      &lt;/Directory&gt;
      &lt;Directory /media/2A98EDD2ACA90087/WebProject&gt;
          Options Indexes FollowSymLinks MultiViews
          AllowOverride None
          Order allow,deny
          allow from all
      &lt;/Directory&gt;
  
      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
      &lt;Directory "/usr/lib/cgi-bin"&gt;
          AllowOverride None
          Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  
      ErrorLog ${APACHE_LOG_DIR}/error.log
  
      # Possible values include: debug, info, notice, warn, error, crit,
      # alert, emerg.
      LogLevel warn
  
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
      Alias /doc/ "/usr/share/doc/"
      &lt;Directory "/usr/share/doc/"&gt;
          Options Indexes MultiViews FollowSymLinks
          AllowOverride None
          Order deny,allow
          Deny from all
          Allow from 127.0.0.0/255.0.0.0 ::1/128
      &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And have this apache message!</p>
  
  <p><strong>Forbidden
  You don't have permission to access / on this server</strong></p>
  
  <p>When i have created "test" dir and move localhost from var/www to var/www/test - everything works. I suppose that problem with file permissions??!What should i do?</p>
  
  <hr>
  
  <p>The problem has been solved. Thanks Patrick and Joh. Really need to give read access to index.html: chmod 644 /media/2A98EDD2ACA90087/WebProject/index.html</p>
  
  <p>But i can't change access to my Ntfs mounted drive. I have to remount</p>
  
  <p>why cant change permission ownership group of external hard drive on ubuntu</p>