I got stuck when port forwarding with VBox

background

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

Conclusion

The virtual OS firewall could not be set.

Solution

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.

Impressions

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

I got stuck when port forwarding with VBox
Where I got stuck with Swift Package Manager support
When I bcrypt with node + docker, I got an error
I got stuck in File
I got an InvalidUseOfMatchersException when using any with JUnit Mock
I got an IllegalAccessError when trying to use PowerMock with JUnit
I built a rails environment with docker and mysql, but I got stuck
When I tried to build an environment of PHP7.4 + Apache + MySQL with Docker, I got stuck [Windows & Mac]
[RSpec] What I got stuck when I wrote the mailer (password reset process) test
Where I got stuck in today's "rails tutorial" (2020/10/08)
I got stuck while studying Java SE 7/8 Bronze
I got stuck trying Volley's synchronization process (Java)
Where I got stuck in today's "rails tutorial" (2020/10/05)
Where I got stuck in today's "rails tutorial" (2020/10/06)
Where I got stuck in today's "rails tutorial" (2020/10/04)
Where I got stuck in today's "rails tutorial" (2020/10/07)
I got an error when I ran rake routes.
When creating the top page, I was stuck with the handling of images (super beginner)
Unsupported major.minor version 52.0 A memorandum when I got hooked
Connect with port forwarding with SSH and send and receive files
I got stuck in a clone of a two-dimensional array