Correct nginx configuration and string code