📌 MEDIUM |
Category: Web & IT |
ID: W05 |
Owner: CEO
W05 — WordPress trong Docker thay HTTP tu reverse proxy
Tom tat
NPM (reverse proxy) ket noi WordPress qua HTTP noi bo. WordPress nghi site la HTTP -> mixed content, cookies khong secure, redirect loops.Cach xu ly
Them vaowp-config.php:
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
📚 Published from Company Knowledge Base — W05
Last updated: 2026-03-14
Review by: 2026-06-12