Skip to content

Commit 64e2709

Browse files
committed
Merge pull request andreaskoch#9 from Rishka/api
added rewrites for magento api calls. Fixes andreaskoch#7
2 parents 92281db + fdf6951 commit 64e2709

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/nginx/sites-enabled/default.conf

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ server {
3434
# Custom Locations
3535
include /etc/nginx/custom-locations/*.location;
3636

37+
location /api {
38+
rewrite ^/api/rest /api.php?type=rest last;
39+
rewrite ^/api/v2_soap /api.php?type=v2_soap last;
40+
rewrite ^/api/soap /api.php?type=soap last;
41+
}
42+
3743
location ~ ^/cron\.(sh|php) {
3844
return 404;
3945
}

0 commit comments

Comments
 (0)