Last active
August 22, 2024 16:57
-
-
Save mklooss/7300787 to your computer and use it in GitHub Desktop.
nginx magento configuration for API Calls
This file contains hidden or 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; | |
} |
In one:
location /api {
rewrite ^/api/(\w+).*$ /api.php?type=$1 last;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. This worked great for me.