Jump to content

Setting up use of Invision Community API with Nginx


Recommended Posts

Hi,

We want to use the API and the REST API instructions are telling us to put a .htaccess file into the API folder, however, we're not running an Apache server, but Nginx, so this won't work - right? Advice on how to set this up would be greatly appreciated - thanks!

Could contain: Text

Link to comment
Share on other sites

I'm afraid, only Apache is supported. If you want to use NGINX, you would need to work with your server administrator to translate the .htaccess rules to NGINX. There may be someone here who has already done so but please keep in mind, if any issues arise from your server configuration, they would be on yourself to resolve.

Link to comment
Share on other sites

  • 9 months later...
On 5/17/2023 at 11:59 AM, Jim M said:

I'm afraid, only Apache is supported. If you want to use NGINX, you would need to work with your server administrator to translate the .htaccess rules to NGINX. There may be someone here who has already done so but please keep in mind, if any issues arise from your server configuration, they would be on yourself to resolve.

Hi, I've tried finding a solution to this problem and it seems this is the blanket response you guys throw on every post.  You say Nginx isn't supported, yet when purchasing your expensive software, it clearly states Nginx is supported, and that your app works on all modern web servers. Nowhere on that page does it even recommend you use apache, which personally, I don't use, because I have other apps running.
https://invisioncommunity.com/buy/self-hosted/

The issue isn't that the API isn't working. The issue is that the check in the api CP does not work which makes creating api keys impossible.

I can hit the api no problem with my rules. the response I get hitting core/hello is
{
    "errorCode": "2S290\/6",
    "errorMessage": "NO_API_KEY"
}
Obviously this means the API is working... why doesn't the Admin CP realize that? (it keeps showing the page up top) what kind of check is it performing? I don't see any requests to the api in the access logs except when I hit it.

 

For reference here is my Nginx server block which was converted from htaccess

 

location /api/ {
  if (!-e $request_filename){
    rewrite ^/api/(.*)$ /api/index.php;
  }
}

Link to comment
Share on other sites

  • Recently Browsing   0 members

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