0
votes
1answer
11 views

nginx rewrite where replacement has request parameters

I need help getting this rewrite working. I want www.example.com/sizing-care to rewrite to www.example.com/blog/?p=2301 Currently I have this in the server context in the nginx config: rewrite ...
0
votes
1answer
72 views

How to map requests to an external directory

I have a directory/application that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: ...
2
votes
1answer
2k views

nginx proxy rewrite not matching

I'm setting Nginx to forward requests to several backend services using proxy_pass A few of them I have to add rewrite rules to strip the folder off, however for this particular service, the rewrite ...
3
votes
1answer
558 views

What does the '^' mean in “rewrite ^ http://test.com permanent;”

I found some configuration of nginx contains: if($args ^~ post=140) { rewrite ^ http://test.com/ permanent; } What does the ^ mean in rewrite ^ http://test.com/ permanent?