> Hi, > > I've a problem getting rewriting via router_rewrite to work, the > following rewrite rule does not seem to do anything: > > $ ./uwsgi > --plugins=0:notfound,http,router_redirect,router_rewrite,router_static > --http-socket=:8080 --check-static=$PWD --route-uri='^/logo$ rewrite-last: > /logo_uWSGI.png' > $ curl -I http://127.0.0.1:8080/logo > HTTP/1.1 404 Not Found > Connection: close > Content-Type: text/plain > > $ curl -I http://127.0.0.1:8080/logo_uWSGI.png > HTTP/1.1 200 OK > Content-Type: image/png > Content-Length: 5971 > Last-Modified: Sun, 10 Mar 2013 21:24:48 GMT > > Am I doing something wrong or is this a bug? This isn't related > to bug #183, it happens before the fix as well. > -- > Guido Berhoerster > _______________________________________________ >
Check-static happens before routing. What you "rewrite" are the CGI vars (PATH_INFO and QUERY_STRING) passed to the plugin. Hint: are you sure you do not need a "static" plugin like the 404 one ? Obviously the "static" router could be a good solution too -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
