This approach seems interesting, but why did the functionality changed in first place? Igor Sysoev wrote: > I think we can say explicitly that we want to test directory existance > using trailing slash: > > try_files $uri $uri/ @php;