You can use a single NAT (without a second adapter):
Set adapter No1 to NAT, then click "Port forwarding", type (for example) 8080 in Host port, and 80 in Guest port (no ip addresses needed).
You may also (optionally) wish to map SSH here to a different port.
Then in the CentOS 7 VM, once your Apache or NGINX server is installed and running (eg: yum install nginx, systemctl start nginx, systemctl enable nginx), configure the firewall as niaomingjian suggested, but perhaps more properly:
sudo firewall-cmd --zone=public --add-service=http --permanent
sudo firewall-cmd --reload
Then navigate on your host machine to http://127.0.0.1:8080 and check you get the welcome page.
If this doesn't work straight away, try stopping and starting the firewalld service, or rebooting the VM.
thanks! only this worked for me! – Diogo Garcia – 2019-03-07T22:13:42.443
Works great, thanks. Interestingly this step doesn't seem to be necessary on Debian-based systems. – Radu Murzea – 2019-03-18T16:00:45.780