Fixes for nginx.