Control Web Panel

WebPanel => SSL => Topic started by: yeknafar on July 23, 2018, 05:59:25 PM

Title: What should I do to have SSL on Wordpress with Nginx+ Apache+Varnish webserver?
Post by: yeknafar on July 23, 2018, 05:59:25 PM
Hello

My server is nginx+Varnish+Apache. If I want to have SSL on my wordpress site do I have to use this code:
 

Code: [Select]

 server {
listen 80;
server_name example.com www.example.com;
return 301 https://plugin.salamzaban.com$request_uri;
}



in .httaccess file?

I do that and get "500 Internal Server Error"

 
Thanks :)

Title: Re: What should I do to have SSL on Wordpress with Nginx+ Apache+Varnish webserver?
Post by: bullten on July 23, 2018, 06:18:03 PM
You dont need to add anything. Leave everything default and everything will work fine.
Title: Re: What should I do to have SSL on Wordpress with Nginx+ Apache+Varnish webserver?
Post by: studio4host on July 25, 2018, 01:50:18 PM
you can edit your wordpress configuration from wp-admin and change url from http to https as the simplest option
Title: Re: What should I do to have SSL on Wordpress with Nginx+ Apache+Varnish webserver?
Post by: yeknafar on July 25, 2018, 01:56:03 PM
I did but no result. I could not have force SSL but then I removed the Varnish now I do not have any problem with SSl.