Need to proxy pass and rewrite the url

kamalakar v. lists at
Fri Jan 20 10:04:20 UTC 2012

my conf :

 location / {
        proxy_pass ;
        proxy_redirect       off;
        proxy_set_header     Host $host;

    location ~*/redirect {
        proxy_pass $1;

* -->>

  * if the url contains redirect then i should rewrite the url ( need to
change the domain and append 'cp' to the url

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:
 This almost clear my problem but need to append cp to the url?

Posted via

More information about the nginx mailing list