我的Nginx Proxy Manager不能反向代理wordpress,不起作用


Recommended Posts

当我在Nginx Proxy Manager配置好后,用域名带端口(域名还没备案过)访问时,访问不到wordpress!但是有个奇怪的问题正常访问时域名后面的端口号是不会变的,但是访问wordpress时后面端口会变成内网wordpress端口。
我网上搜了资料说是重定向问题(不知道是不是),需要在wordpress里的wp-config.php文件添加如下代码,但是还是不起作用。
## 加入下面3行代码
$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);

Link to comment
  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.