Installing SSL in Nginx With Wordpress

I have installed a new wordpress site on LEMP stack but the problem is the SSL certificate in not working.

Here’s how my SSL config looks like:

server {
            listen 443 default_server ssl;
            ssl on;
            ssl_certificate      /srv/ssl/nginx.pem;
            ssl_certificate_key  /srv/ssl/nginx.key;

            root /wdata/;
            index index.php index.htm index.html;

            location ~ .php$ {
              fastcgi_index  index.php;
              fastcgi_param  SCRIPT_FILENAME /wdata/$fastcgi_script_name;
              include fastcgi_params;

Can anyone suggest any solution?

How do you mean it’s not working? Isn’t the server starting, or are you seeing some kind of error in your browser?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.