2
1

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.

プライベートな Vagrant に ngrok でアクセスする

Posted at
% ngrok http --region=ap -host-header=rewrite example.local:80 

Rewriting the Host header

前提条件

Vagrant のネットワークは private で IP 指定

Vagrantfile
config.vm.network "private_network", ip: "192.168.33.10"

hosts 設定済み

/etc/hosts
192.168.33.10  example.local

環境

% sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.14.5
BuildVersion:   18F132

% vagrant -v
Vagrant 2.2.4

% VBoxManage -v      
6.0.8r130520
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?