WP Multisite Subdir + SSL + Redis

I have a problem with setting Wordpress Mulitisite subdirectory with Redis. I want to take advantage of the SSL certificate. I set:

server {
    
listen 80;
server_name mydomain.com www.mydomain.com;
rewrite ^/(.*) https://mydomain.com/$1 permanent;
        
}
    
server {
    
listen 443 ssl;
server_name mydomain.com;
    
ssl_certificate /../SSL.crt;
ssl_certificate_key /../mydomain.com.key;
    
access_log /var/log/nginx/mydomain.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mydomain.com.error.log;
    
root /var/www/mydomain.com/htdocs;

index index.php index.html index.htm;
    
include  common/redis.conf; 
include common/wpsubdir.conf;
include common/wpcommon.conf;
include common/locations.conf;
include /var/www/mydomain.com/conf/nginx/*.conf;
}

Everything is ok, websites are working properly, both backend and frontend like. However, when activated Redis (using a plugin), I was logged out. Re-logging is impossible (the password is correct).

Does anyone have any idea?

Hello @Natiugango

Could you say which EasyEngine version you are using ?

Could you check your wp-config.php, if following line exist:

define( 'WP_CACHE_KEY_SALT', 'example.com:' );

If not found could you manually edit in wp-config.php. If you have multiple Redis sites in your server, make sure you edit in every site’s wp-config.php.

example.com should be replaced with your domain name.Also make sure you didn’t skipped “:” at the end.

Also run the following command and check

redis-cli flushall

Thank you very much! The corresponding entries in the wp-config.php already were, but helped the use of command

redis-cli flushall

Hello @Natiugango

As your issue has been resolved, i am closing this ticket.

Feel free to create new thread if you have any doubt further.

Thanks & Regards

Prabuddha Chakraborty