fix revrite rules (https on nginx blog post)