Simple Rewrite Question

Alan Williamson alan at aw20.co.uk
Fri Jan 16 14:11:29 MSK 2009


I think i blundered upon the solution myself:

        location ~* /$ {
                rewrite (.*) $1index.cfm;
                proxy_pass http://beta.yourli.st;
        }

        location / {
                proxy_pass http://beta.yourli.st;
        }

This does indeed do the trick; what i was missing the "~* /$" in the
location directive.

Is there a more efficient way of doing this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090116/782b25d3/attachment.html>


More information about the nginx mailing list