Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.
% ngrok http --region=ap -host-header=rewrite example.local:80 

Rewriting the Host header


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

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

hosts 設定済み

/etc/hosts  example.local


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

% vagrant -v
Vagrant 2.2.4

% VBoxManage -v      
10.15.5 mba 2018 @current_temp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away