Base Site url On Every Site

Multisite
subdirectories mode
nginx, php5-fpm

The links seems to have screwed up so that the admin menu which should show each site link to which iam a member shows only the main site.

Something related to url rewriting? Any help is appreciated.