Skip to content

Instantly share code, notes, and snippets.

View mymizan's full-sized avatar
🎯
Focusing

M Yakub Mizan mymizan

🎯
Focusing
View GitHub Profile
@mymizan
mymizan / Vagrant-port-forward-to-host.md
Created September 29, 2018 09:58 — forked from radabass/Vagrant-port-forward-to-host.md
Vagrant port 80 443 forwarding to HOST machine OSX El Capitan

El Capitan OSX Vagrant port forwarding rules to use privileged ports 80 and 443

Due to the OSX limitations in ports below 1024, in order to use them without running as root the virtualbox headless you can do the following workaround, (remember the command ipfw is deprecated on El Capitan)

In the Vagrant file use ports over 1024, for instance change 80 and 443 to 8080 and 8043.

  # Apache
  config.vm.network "forwarded_port", guest: 80, host: 8080