Git Product home page Git Product logo

Comments (5)

pentago avatar pentago commented on May 21, 2024

Explain exactly what did you do because you didn't supposed to "move" anything anywhere, just merge config sections you actually need.

from server-configs-nginx.

quantumpacket avatar quantumpacket commented on May 21, 2024

When you run netstat -tap from a shell, do you see listening ports for 80/443? If not then it's nothing to do with a firewall, but the fact the hosts are not listening at all.

from server-configs-nginx.

Ulaxidor avatar Ulaxidor commented on May 21, 2024

@pentago
Thanks for the reply! I cloned the h5bp server config repository via " git clone [email protected]:h5bp/server-configs-nginx.git /etc/nginx "
So rather than use the nginx directory that was already present during my initial installation of nginx, I moved it and replaced it with the contents of the h5bp server config repository. Are you suggesting I merge the two directories, and replace any default files with the ones that come with the h5bp repository?

from server-configs-nginx.

Ulaxidor avatar Ulaxidor commented on May 21, 2024

@quantumpacket
Thanks for the reply! The server does not listen to either ports 80 or 443. An "nmap localhost" confirmed the netstat -tap results, which is that despite there being a proper host file, the server did not listen on either port. I've tried many host files, and no matter how simple, none have worked using the method of installation I outlined above. I will try merging both nginx directories.

from server-configs-nginx.

AD7six avatar AD7six commented on May 21, 2024

What am I doing wrong?

Well, it seems obvious that nginx isn't starting. Step 0 when debugging anything is to look at the log output e.g.:

root@vagrant:/etc/nginx/sites-enabled# /etc/init.d/nginx reload
 * Reloading nginx configuration nginx                                                                                                       [fail] 
root@vagrant:/etc/nginx/sites-enabled# nginx -t
nginx: [emerg] unknown directive "del" in /etc/nginx/sites-enabled/no-default:2 
nginx: configuration file /etc/nginx/nginx.conf test failed
root@vagrant:/etc/nginx/sites-enabled# 

Closing as this repo isn't intended to be a replacement for nginx docs or a general nginx support mechanism.

Thanks!

from server-configs-nginx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.