Dear supporter,
i have sever A (ip_a) with domain.com and database
i create sever B ( ip_b ) with only domain.com ( no database )
i set up ssl for domain.com ( at sever B ), set PHP is static.
Now i create Reverse Proxy sever B as image below
i edit config.php from
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', DIR . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
---->
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', DIR . '/' );
}
if ($SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $SERVER['HTTPS']='on';
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
( i tried keep default config.php but i cant access login page. )
--- i point IP_b to DNS cloudflare
Everything work well....
BUT....
If my site has about 20+ concurrent hits, it will get error 502
After I removed the reverse proxy, my site was able to handle 2000+ concurrent online visitors. ( I used bot traffic to test the load capacity of my website. )
Please help me fix this problem. Thank you