What should I do to have SSL on Wordpress with Nginx+ Apache+Varnish webserver?

Started by yeknafar, July 23, 2018, 05:59:25 PM

Previous topic - Next topic

yeknafar

Hello

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




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 :)

I love CWP

bullten

You dont need to add anything. Leave everything default and everything will work fine.

studio4host

you can edit your wordpress configuration from wp-admin and change url from http to https as the simplest option
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

yeknafar

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.
I love CWP