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
nginx


source to share


No one has answered this question yet

Check out similar questions:

60
Are Nginx variables similar to SetEnv in Apache?
thirty
Direct request headers from nginx proxy
23
route another proxy based on subdomain request in nginx
6
Will Nginx serve as a reverse proxy for Apache help for dynamic content only
3
set nginx as proxy for both apache and gun
2
Nginx reverse proxy behind Apache not working
0
Nginx proxy subdomain for laravel url
0
Nginx proxy auto subfolder
0
Nginx dynamic proxy
0
Nginx as a reverse proxy for Apache



All Articles
Loading...
X
Show
Funny
Dev
Pics