Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
KenuFHR Posted May 17, 2023 Posted May 17, 2023 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!
Jim M Posted May 17, 2023 Posted May 17, 2023 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. KenuFHR 1
drodrodro Posted February 26 Posted February 26 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; } }
Marc Posted February 26 Posted February 26 Sorry, for clarification there, we provide only apache style redirects
Rick Vasquez Posted February 27 Posted February 27 it shouldn't be difficult to adapt the apache redirect to the nginx rule. If you are struggling with that there are utilities that can help as well.
Dazz Posted August 6 Posted August 6 On 2/25/2024 at 6:44 PM, drodrodro said: 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; } } Did you ever figure this out? We have added these conversions for htaccess, but still not getting anywhere with the API.
Recommended Posts