title: How to redirect in apache?
body: <p>This should be a simple issue but I can't figure this out. I have a webpage running on a machine to access from the local network. I want to redirect the results of scripts run under cgi back to my <code>/var/www/index.html/</code> file. I tried to place a redirect line in my /etc/apache2/apache2.conf`` that didn't work so I tried an even simpler task:</p>
  
  <pre><code>redirect permanent /var/www/index.html http://www.google.com
  </code></pre>
  
  <p>And not even this worked. </p>
  
  <p>What am I doing wrong?</p>
  
  <p>I'm running this on an Ubuntu machine.</p>
  
  <p>Edit:</p>
  
  <p>This is added to my error log when I restart the server:</p>
  
  <pre><code>[Sat Jun 16 17:26:36 2012] [notice] caught SIGTERM, shutting down         | * Restarting web server apache2
  [Sat Jun 16 17:26:36 2012] [notice] Apache/2.2.22 (Ubuntu) configured -- \|apache2: Could not reliably determine the server's fully qualified domain \
  resuming normal operations      
  </code></pre>
  
  <p>Edit: Solved and a new problem</p>
  
  <p>I have managed to redirect the webpage to google and now I want to do the actual redirect. I have added this to my <code>apache2.conf</code> file</p>
  
  <pre><code>Redirect permanent /cgi-bin/file.cgi /index.html
  </code></pre>
  
  <p>And removed the previous file. The file now is redirected to google and not back to my home file...</p>
  
  <p>What's going on?</p>