fix nginx https bug