Overwriting Nginx Location /


#1

I have a Vanilla forum on the root of my domain ark20x.com.

To be able to use pretty permalinks, I need to add:

        location / {
            try_files $uri $uri/ @forum;  
  }
    location @forum {      
      rewrite ^/(.+)$ /index.php?p=$1 last;     }

But when I do, I get an nginx error. How to fix that?


#2