title: Problematic Nginx config
body: <p>I have setup the following ngnix config for my Ubuntu 14.04 VPS running HHVM with ngnix:  </p>
  
  <pre><code>server {
  listen 80 default_server;
  listen [::]:80 default_server ipv6only=on;
  
  root /home/lephenix/main_website;
  index.php index.html index.htm;
  
  # Make site accessible from http://localhost/
  server_name localhost;
  include hhvm.conf;
  
  location / {
      # First attempt to serve request as file, then
      # as directory, then fall back to displaying a 404.
      try_files $uri $uri/ /index.php?q=$uri&amp;amp;$args;
      # Uncomment to enable naxsi on this location
      # include /etc/nginx/naxsi.rules
  }
  }
  </code></pre>
  
  <p>Problem is that when I enable this config I get an error from ngnix:</p>
  
  <pre><code>2014/09/07 13:16:01 [emerg] 13584#0: unknown directive "index.php" in /etc/nginx/sites-enabled/default:6
  </code></pre>
  
  <p>I have looked and this seems to be the correct structure for this configuration. Even when I remove index.php the error then changes to:</p>
  
  <pre><code>2014/09/07 13:17:03 [emerg] 13648#0: unknown directive "index.html" in /etc/nginx/sites-enabled/default:6
  </code></pre>
  
  <p>I followed the following guide to setup the server:
  <a href="http://webdevstudios.com/2014/07/17/setting-up-wordpress-nginx-hhvm-for-the-fastest-possible-load-times/" rel="nofollow">http://webdevstudios.com/2014/07/17/setting-up-wordpress-nginx-hhvm-for-the-fastest-possible-load-times/</a></p>
  
  <p>Thanks in advance for any help  </p>