title: How can i set htaccess file for virtual host?
body: <p>I created a virtual host with this code :</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
      ServerAdmin admin@127.0.0.1
      ServerName site.ws
      ServerAlias www.site.ws
      DocumentRoot /home/me/Projects/website/build
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  &lt;Directory /home/me/Projects/website/build&gt;
  
          Allow from all
          Satisfy any
  
  &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and I created a .htaccess file in my /build directory with this code :</p>
  
  <pre><code>RewriteEngine On
  
  RewriteRule   ^(.*)$    $1.html    [R,NC]
  </code></pre>
  
  <p>Consider my mod_rewrite is active in apache2, but I can't open pages with /filename</p>
  
  <p>e.g site.ws/about</p>
  
  <p>It shows error :
  The requested URL /about was not found on this server.</p>