Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


nGINX Configuration for custom PHP Framework - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

nGINX Configuration for custom PHP Framework

2»

Comments

  • BharatBBharatB Member, Patron Provider
    edited September 2015

    This helped the binding issue although nginx doesnt respond on those ports

    [root@openvz conf.d]# netstat -tulpn | grep nginx

    tcp 0 0 0.0.0.0:2080 0.0.0.0:* LISTEN 5210/nginx

    tcp 0 0 0.0.0.0:2081 0.0.0.0:* LISTEN 5210/nginx

  • BharatB said: This helped the binding issue although nginx doesnt respond on those ports

    [root@openvz conf.d]# netstat -tulpn | grep nginx

    tcp 0 0 0.0.0.0:2080 0.0.0.0:* LISTEN 5210/nginx
    tcp 0 0 0.0.0.0:2081 0.0.0.0:* LISTEN 5210/nginx

    What do you mean by it doesn't respond on those ports? What error do you get?

  • @BharatB said:

    This helped the binding issue although nginx doesnt respond on those ports

    Firewall maybe?

  • BharatBBharatB Member, Patron Provider
    edited September 2015

    @JustAMacUser said:
    Firewall maybe?

    Turned off the firewall too :/ obviously

    Says connection refused.

  • BharatBBharatB Member, Patron Provider

    UPDATE :

    Thing is ports were responding on IP address eg:

    http://ip-address:2081/

    but when I try with

    http://sub.domain.com:2081/

    Connection refused

    So something wrong in config ?

  • Try placing "default_server" into the "listen" directive and use "_" as "server_name".

    Thanked by 1BharatB
  • BharatBBharatB Member, Patron Provider

    Ok I was an idiot I forgot to open ports on router for vm's lan ip and so everything is in-place now... jeez need to get some sleep silly piece of mistakes here .

Sign In or Register to comment.