VirtualBox on OSX has that annoying limitation :
A quick way to expose a website is to expose the 8080 on the VirtualBox NAT instead as it is above 1024 and it is not a problem, then to redirect the port 80 with the OSX NAT to the port 8080. I can be done simply that way :
echo “
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
“ | sudo pfctl -ef –
You can then disable it with :
sudo pfctl -F all -f /etc/pf.conf