Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joostvanveen
Created February 22, 2017 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joostvanveen/603317c24a805634b37378ccc88d5fae to your computer and use it in GitHub Desktop.
Save joostvanveen/603317c24a805634b37378ccc88d5fae to your computer and use it in GitHub Desktop.
nginx rewrite to make Magento REST Api accessible on Byte Hypernode platform. Configuration PHP/fpm - nginx - varnish.
location /api {
rewrite ^/api/rest /api.php?type=rest last;
rewrite ^/api/v2_soap /api.php?type=v2_soap last;
rewrite ^/api/soap /api.php?type=soap last;
location ~ \.php$ {
echo_exec @phpfpm;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment