Fix for nginx virtualhosts