just another apache to nginx rewrite question
- by Brandon
I have the following Apache rewrite directives:
RewriteCond %{REQUEST_URI} ^/proxy(/|$) [NC]
RewriteCond %{QUERY_STRING} (^|&)uri=(.*?)(&|$) [NC]
RewriteRule .* /api/vs1.0/%2 [NC,L]
And I'm trying out nginx, so trying to move the rewrites over. I came up with...
rewrite ^/proxy(/|$) /api/vs1.0/$2 last;
rewrite…