Changes necessary to make api site run on nginx.

All these changes really do is take the recommendations in the nginx README and implements them out-of-the-box.