LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2013, 04:57 PM   #1
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

Rep: Reputation: 7
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
 
Old 06-15-2013, 05:20 PM   #2
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 116

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

Now works as expected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx/1.4.1 '/etc/nginx/sites-available/default' missing Jalalabee Linux - Newbie 0 06-05-2013 07:44 AM
Help securing a Fedora 17 Web Server + Nginx FlexBuffChest92 Linux - Security 2 11-30-2012 02:59 PM
nginx + php-fpm and nginx modules fantasygoat Linux - Server 0 06-09-2011 12:21 PM
Nginx experts help me-problem when using Nginx php-fpm !!! HuMan-BiEnG Linux - Server 2 04-17-2011 02:30 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration