Changes necessary to make api site run on nginx.
Merge branch 'adear11-nginx-compat'