无法让 ngrok 为我的 WordPress 网站提供服务 [英] Cannot get ngrok to serve up my WordPress site

查看:30
本文介绍了无法让 ngrok 为我的 WordPress 网站提供服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 OS/X 上使用 Mamp 免费版进行了简单的 wordpress 安装.

<块引用>

版本 2.0.19/2.0.19
网页界面 h#tp#//127.0.0.1:4040
转发 h#tp#//6c219c8e.ngrok.io ->本地主机:8888 转发
h#tps#//6c219c8e.ngrok.io -> 本地主机:8888
连接 ttl opn rt1 rt5 p50
p90
1 0 0.00 0.00 6.00 6.00

由于某种原因,当我尝试使用 ngrok 生成的链接时,网站会一直加载,然后我得到 <块引用>

页面不可用.

解决方案

正如@Magico 所说,从 repo 下载 https://github.com/jonathanbardo/WP-Ngrok-Local 并将其放在您的插件目录中,激活插件.

然后,在你获得你的 ngrok 隧道 URL 之后 &运行,获取该 URL 并将其放置在您的 wp-config.php 中,如下所示:

define('WP_SITEURL', 'http://example.ngrok.io/');定义('WP_HOME','http://example.ngrok.io/');

现在您将能够访问主页以及管理仪表板.

I have a simple wordpress install using Mamp Free Version on OS/X.

Version 2.0.19/2.0.19
Web Interface h#tp#//127.0.0.1:4040
Forwarding h#tp#//6c219c8e.ngrok.io -> localhost:8888 Forwarding
h#tps#//6c219c8e.ngrok.io -> localhost:8888
Connections ttl opn rt1 rt5 p50
p90
1 0 0.00 0.00 6.00 6.00

For some reason when I try the links generated by ngrok, the website loads forever, then I get

Page not available.

解决方案

As @Magico stated, download from the repo https://github.com/jonathanbardo/WP-Ngrok-Local and place that in your plugins directory, activate the plugin.

Then, after you get your ngrok tunnel URL up & running, take that URL and place it in your wp-config.php as follows:

define( 'WP_SITEURL', 'http://example.ngrok.io/' );
define( 'WP_HOME', 'http://example.ngrok.io/' );

Now you will be able to access the homepage as well as the admin dashboard.

这篇关于无法让 ngrok 为我的 WordPress 网站提供服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆