Jump to content

NGINX REWRITES


JayKim

Recommended Posts

Hello All,

I am a newbie for Invision board.

Mt site is running based on Nginx FPM, which causes rewrites problem.

Does anyone who has been going through this problem?

.htaccess is not working and I've tried with nginx configuration like the below:


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

                fastcgi_pass_header Authorization;
                proxy_set_header HTTP_AUTHORIZATION $http_authorization;
                if (!-e $request_filename)
                {
                rewrite ^/forum/api/(.*)$ /forum/api/index.php;
                }
        }

 

And I cannot proceed with enabling rest api and see the below error message:

The API endpoint is not giving the expected response. Check you followed the instructions correctly. The URL being tested is: https://wwwtest.eliterising.com/forum/api/index.php?/core/hello

Thank you in advance.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...