skip to Main Content

I have installed it with command "sudo yum install ngingx" and its visible from computer host using its own ip in the browser, but in other computer in the same LAN and resolving ping it doesnt work and answers a timeout error. I know there is a /etc/nginx/nginx.conf file but I didnt see any valid configuration to resolve this (or I didnt search very well).
Machine has internet and resolves ping to other machines in lan
Could somebody guide me?
I use virtualbox to run Fedora
Thank you, here I left nginx.conf enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    Finally the problem was that apache is installed by default in fedora workstation and main page of nginx was showing apache as current web server, so any changes made in nginx wasnt being loaded. Solution: purge apache from system and reboot. Now nginx load as the main web server and changes made are applied


  2. First of all, are you using bridge mode in virtualBox? If so and this is still not working, check if Fedora has enabled the firewall by typing in a shell:

    systemctl status firewalld.service

    If active, check the zone where the main adapter is configured

    firewall-cmd --get-active-zones

    Add ports 443 and 80 to the zone related to your interface (for instance FedoraWorkstation)

    firewall-cmd --zone=FedoraWorkstation --permanent --add-port=80/tcp
    firewall-cmd --zone=FedoraWorkstation --permanent --add-port=443/tcp
    

    This should do the trick

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search