LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fedora 18 / Firewall / Nginx (https://www.linuxquestions.org/questions/linux-software-2/fedora-18-firewall-nginx-4175466167/)

cheddarcheese 06-15-2013 04:57 PM

Fedora 18 / Firewall / Nginx
 
Hi,

I just installed Fedora 18, 32-bit, as a virtual machine, and then installed nginx webserver with MySQL and PHP.

The webserver works okay when I access it as 127.0.0.1, but when I use the public IP address, either from remotely, or from the same machine, it won't load.

I've added the public IP to /etc/hosts, and named it "myserver", and edited the nginx config file so the server name is "myserver" also. However, the site still won't load when trying to access via the server name or by public IP.

I've edited the firewall so that TCP on port 80 is allowed, and so that the http service is allowed. I've stopped and restarted the firewall to ensure that the settings were saved, which they were.

There is nothing else listening on port 80 on the machine on which the virtual machine is resident, but I'm beginning to wonder if there might be some issue with trying to listen for traffic because it is a virtual machine. Having said that, I have networking enabled in virtual machine, and can browse the Internet, etc, etc.

Any suggestions appreciated!

Thanks in advance.
Cheddar

cheddarcheese 06-15-2013 05:20 PM

Problem solved. I simply needed to set up port forwarding in the VirtualBox manager. (under Settings -> Network -> Port Forwarding).

Now works as expected.


All times are GMT -5. The time now is 10:43 AM.