Hi,
when dealing with PHP apps rewrite is used most often to get clean url's,
something like:
location / {
root /var/www/sites/somedomain.com/current;
index index.php index.html;
if (-f $request_filename) {
break;
}
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?url=$1 last;
break;
}
}
But I don't see any way to get that in uWSGI without setting that in nginx
configuration. Internal routing options only allow to have redirect:
route = ^(?!/index\.php)/(.+)$ redirect:/index.php/$1
I don't want to setup that in nginx since I use fastrouter to have apps that
don't need to have any configuration on the load balancer, I can do everything
but not rewrite :(
Am I missing something? And if not is there any chance to add rewrite support
in future?
Łukasz Mierzwa
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi