fix nginx http://stackoverflow.com/a/16887296