Hello
I need help urgently.
I have 2 servers.
Server 1 should be a reverse proxy to server 2
- Server Wordpress
Domain is with an A record on server 1.
I've used these commands; but it doesn't work.
Server 1 reverse proxy:
wo site create example.com --proxy = server2IP --letsencrypt = wildcard --dns = dns_cf --hsts
Server 2 Wordpress:
wo site create example.com --wpfc --php74 --ngxblocker --redis
Server 2: wp-config.php
if ((! empty ($ _SERVER ['HTTP_X_FORWARDED_HOST'])) ||
(! empty ($ _SERVER ['HTTP_X_FORWARDED_FOR']))) {
$ _SERVER ['HTTPS'] = 'on';
}
what am I doing wrong