Want to set proxy flag (like apache) in NGINX
In Apache
rewriterule acution(.*)$ xyz.com$1 [P]
because of this flag, the [P]
user will only get the original IP address or domain.
In Nginx
rewrite acution(.*)$ http://xyz.com$1;
now I want to do the same by setting the proxy flag [P]
so that the user only gets the original domain name instead of http://xyz.com .
Please indicate how to achieve the same.
+3
source to share
No one has answered this question yet
Check out similar questions: