It seems that VirtualBox is also used for business, so I was addicted to it when I tried to access it by port forwarding by inserting Apache without using vagrant, so note
The virtual OS firewall could not be set.
Port forwarding has already been set on the VBox side. Set ServerName to localhost: 80 in Apache settings Next, set the OS firewall.
console
$ firewall-cmd --zone=public --add-service=http --permanent
$ firewall-cmd --reload
$ firewall-cmd --list-all
With this, if http is displayed in the list, communication on port 80 is also possible.
It's interesting to notice that you don't use Vagrant. Fortunately I was messing around with AWS until now, and I was angry that I had to set up a firewall, so I was able to solve the problem.
Recommended Posts