title: correct configuration for nginx to localhost?
body: <p>I just installed nginx and php fastcgi about an hour ago, and after reading examples of a quick starting configuration, and the nginx documentation etc, I just cant get it to work.</p>
  
  <p>No matter what I change or try, I always only get the "Welcome to Nginx!" screen on "localhost/..." - I cant even call a simple index.html</p>
  
  <p>My config:</p>
  
  <p>(the stuff in the comments is what I tried out)</p>
  
  <pre><code>// default nginx stuff (unchanged)
  
  server {
      #listen 80 default_server;
      #listen 80 default;
      listen 80;
  
      #server_name localhost;
      #server_name _;
  
      #access_log /var/log/nginx/board.access_log;
      #error_log /var/log/nginx/board.error_log;
  
      #root /var/www/board;
      #root /var/www/board/public/;
      root /var/www/board/public;
  
      #index index.html;
      index index.html index.htm index.php;
  }
  </code></pre>
  
  <p>If I understand it right, this should be the easiest setup, right? just define <code>listen 80;</code> and  <code>index index.html;</code> but I just cant get it to work</p>
  
  <p>The file /var/www/board/public/index.html exists and has content</p>
  
  <p>Before I waste 2 more hours trying out something, can someone of you give it a quick watch and tell me what I'm doing wrong? Thanks.</p>