By default, Apache servers use mod_rewrite rules in the .htaccess file to make Impact Designer APIs work. For NGINX, you need to manually add the rules; otherwise, the Impact Designer APIs won’t function properly.
Here’s how you edit the NGINX configuration:
Step 1: Edit the Nginx Configuration File
Use the try_files directive (available from NGINX 0.7.27+) to pass URLs to its index.php for them to be internally handled.
Example:
If Impact Designer is installed with a designer folder at the root of the domain (something like http://www.abc.com/designer/), then you need to add an extra location /designer/api/v1/ block to your configuration file: location /designer/api/v1/{try_files $uri $uri/ /designer/api/v1/index.php?$args;}
Step 2: Reload NGINX
After saving the configuration file, reload the NGINX configuration by executing this command: nginx -s reload
That’s it! Your NGINX server is now configured to handle Impact Designer API requests correctly.