No awards yet.


1 Posts
  • Published Question

    Need help fixing http to https on LEMP

    Enabling return 301$request_uri; line makes too many redirects. A also tried 2 blocks with one for 80 2nd for 443 same error. Here is my config for vhost file: ``` server { listen 80; ...
    Accepted Answer: @dmohanty When it comes to NGINX, ideally you'll want to separate the server blocks--one for serving requests on port 80 (which redirects to 443) and one for port 443. Instead of using the domain, I would recommend u...
    1 By dmohanty Nginx CentOS