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

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
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 指定

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
oppara
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