How to turn off SSL in Nginx
<p>I had letsencrypt cert installed before , but then it got expired and now i am not able to renew it .</p>

<p>so I am trying to switch off the SSL i have removed the code related with SSL but still the url is redirecting to <code>https</code>.</p>

<pre><code>server {
    listen 80 ;
    listen [::]:80  ipv6only=on;


    root /var/www/laravel/public;
    index index.php index.html index.htm;

    # Make site accessible from http://localhost/
    server_name domain.in www.domain.in;


    ssl off;

    #charset utf-8;
        #include h5bp/basic.conf;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ /index.php?$query_string;
        # Uncomment to enable naxsi on this location
        # include /etc/nginx/naxsi.rules
    }

    location ~* \.(css|js|gif|jpe?g|png)$ {
        expires 168h;
    }

    error_page 404 /404.html;
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root /usr/share/nginx/html;
    }
     location ~ /.well-known {
                allow all;
        }

    location ~ \.php$ {
        try_files $uri =404;
        client_max_body_size 1024M;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }


    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #   deny all;
    #}
}
</code></pre>

<p>Any Idea how to fix this issue</p>

<p>Thanks</p>