Created
February 22, 2017 09:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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