proxy_redirect problems

Sean Allen sean at
Wed Dec 30 00:26:53 MSK 2009

This might be simple and related to the fact that I have been working
way too many hours in the last 4 weeks.
If it is, please forgive.

We have:

rewrite ^/$ /admin;

which is then handled by:

    location /
        index index.html index.htm;
        try_files $uri $uri/ @seaside;
        error_page 403 = @seaside;

    location @seaside
        proxy_pass http://gemstone;

    upstream gemstone

Urls after the first /

appear as


want it to just be


but cant get.

have tried:

   proxy_redirect  /;
   proxy_redirect  http://gemstone:8080/admin/  /;
   proxy_redirect  http://gemstone/admin/  /;

and none work.

have done many times in the bygone days in apache but never
in nginx. can someone point out what i'm doing wrong?

More information about the nginx mailing list