1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Local by Flywheel で macOS 上に立てた WordPress をローカルネットワークで雑に共有したい

Last updated at Posted at 2019-09-09

やりたいこと

Local by Flywheel で立てたローカルの WordPress のサイトをローカルネットワークで雑に共有したい。(Local by Flywheel は 公式で ngrok.io をサポートしてるけどおそいので…)

やりかた

nginx をローカルに立ててリバースプロキシみたいに使う。以下はmacOSの場合のやり方。

インストールして

brew install nginx

/usr/local/etc/nginx/nginx.conf をひらいてこんな感じに設定

/usr/local/etc/nginx/nginx.conf
    server {
        listen       80;
        server_name  localhost;

        location / {
          proxy_pass http://your-word-press-on-local-by-flywheel-domain.local/;
        }
    }

WordPressの管理画面からサイトのドメイン設定を割り振られたローカルIPにすれば他のマシンから雑に確認できる。

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?