Author Topic: SSL depends on Wenserver?  (Read 5769 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SSL depends on Wenserver?
« on: July 23, 2018, 04:07:25 PM »
Hello

Thanks for your attention

When we change our webserver we have to change the SSL settings?

I want to have SSL on Wordpress. It's OK with Apache but when I install Apache+Nginx+Varnish it does not work correctly.





 
I love CWP

Offline
***
Re: SSL depends on Wenserver?
« Reply #1 on: July 23, 2018, 06:20:57 PM »
What error you get. I tried to replicate the same thing on one of the server but cant find any issue.

Offline
*
Re: SSL depends on Wenserver?
« Reply #2 on: July 24, 2018, 07:19:49 AM »
Thanks for your answer

The main problem is force SSL./

I wanted to use this manual:

https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-

wordpress/


I did not get any result and after adding the codes that he mentioned to the

.httaccess the site does not work but when I vhange the http to https in

"option" part of the database without using any code it behaves differently

on each subdomain.

On one subdomain http forces to https and on the other subdomain it doesnot

happen at the same situation and and setting.

Take a look at these subdomains please:

http://blog.salamzaban.com

http://level.salamzaban.com


Level subdomain goes to https but blog subdomain doesnot go to https automaticly.

Thanks
I love CWP

Offline
*
Re: SSL depends on Wenserver?
« Reply #3 on: July 24, 2018, 03:22:54 PM »
Thanks for your attention and answer.
Just now I did it.

The problem was the code that I used for htaccess .


I use this now:

# BEGIN WordPress
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I love CWP