V
V
vilix2014-01-29 02:53:09
Apache HTTP Server
vilix, 2014-01-29 02:53:09

There is Apache2 on Ubuntu guest OS. How to access the site from the Internet?

Please help me find the error. There is Apache2 on Ubuntu guest OS. I want to access the site from the Internet or, for starters, from the host machine.
So, I chose network settings through NAT in vb, wrote two rules. host 8888 -> guest 80; host 2222-> guest 22. I reboot the guest machine, from the real machine 127.0.0.1:8888 - I get a 404 error.
I looked at this port on the host - LISTEN.
executed telnet 127.0.0.1 8888 - I get the html code of the page.
In Apache, in all configs, I replaced ip with 0.0.0.0
Actually, the question is, what am I doing wrong? I want to understand exactly my mistake in NAT, like the floor of the logic, everything should work, but alas.
It is completely confusing that the page is obtained by telnet, but the browser does not see it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sonik_spb, 2014-01-29
@vilix

You get a 404 error, which is already being sent by Apache. Port forwarding works. Telnet you apparently also download 404.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question