Skip to content

Instantly share code, notes, and snippets.

View gil-cano's full-sized avatar
:octocat:

Gildardo Bautista gil-cano

:octocat:
  • Instituto de Mátematicas, UNAM
  • Mexico
  • X @gil_cano
View GitHub Profile
@radabass
radabass / Vagrant-port-forward-to-host.md
Last active September 23, 2023 08:38
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