V
V
vilix2014-01-31 18:24:08
Apache HTTP Server
vilix, 2014-01-31 18:24:08

Wordpress under NAT, port issue?

The question is more for interest and understanding of what is happening than critical.
There is a virtualbox with ubuntu guest with apache2.2. NAT configured. ubuntu has wordpress.
If I set the forwarding rule host 81 -> guest 81 . and in the WordPress settings I write sitename:81, then I can get a wordpress page from the machine host at 127.0.0.1:81.
If the rule is host 81 -> guest 80 and just sitename in the WordPress settings, then when you log in from the host machine at 127.0
. wordpress or can I customize it somehow? For example, phpmyadmin works without problems with such a rule.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Zhovner, 2014-02-01
@zhovner

In virtualbox, you can configure the network in bridge mode to the physical interface. And if the host system is connected to the router and receives an IP via DHCP, say 10.0.0.1, then the virtual machine will receive the address 10.0.0.2 and will be visible as a full-fledged host on the network. Then it will be possible to access the web server of the virtual machine at 10.0.0.2 and avoid port forwarding.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question