my conf :
location / {
proxy_pass http://mydomain.com;
proxy_redirect off;
proxy_set_header Host $host;
}
location ~*/redirect {
proxy_pass http://some.domain.com/cp/$1;
}
-
http://mydomain.com/12121/redirect -->>
http://some.domain.com/cp/redirect- if the url contains redirect then i should rewrite the url ( need to
change the domain and append ‘cp’ to the url
- if the url contains redirect then i should rewrite the url ( need to
But with above config not working giving me following error page
“The page you are looking for is temporarily unavailable. Please try
again later.”
Referred the below thread:
Nginx for proxy + rewrite - NGINX - Ruby-Forum
This almost clear my problem but need to append cp to the url?