> 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?
>
>

I am just working on a 'rewrite' routing plugin (i should be able to
complete it just in time for -rc2 tomorrow)

Basically it modifies PATH_INFO and QUERY_STRING variables leaving all of
the others untouched


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to