Setting FURL with nginx 1.10 for ips 4

July 4, 2016 729 views
LEMP Configuration Management Ubuntu 16.04

I am trying to settup furl for invision power suite 4 on nginx 1.10 and I have tried this:

location / {
    try_files $uri $uri/ /index.php;
  }

  location ~^(/page/).*(.php)$ {
    try_files  $uri $uri/ /index.php;
  }

and this:

    location / {
        try_files   $uri $uri/ @ips;
    }

But in both case nginx won't restart.
I google and tried a few others but still not working, what am I forgetting?

2 Answers

@stephgiguere

What does your complete server block look like, including your FastCGI configuration (ideally, these would be independent from one another and the server block calls the FastCGI configuration using NGINX's include directive).

It's hard to take a guess without the complete configuration :-).

Well I managed to fix it and get it to work with this:

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

But I had to remove this line to get it to work:

    location / {
        try_files $uri $uri/ =404;
        }
Have another answer? Share your knowledge.