nginx reported offline but working

Discussion in 'Installation/Configuration' started by baskin, Feb 28, 2013.

  1. baskin

    baskin New Member

    I have a strange issue on an ISPconfig 3.0.5.1 installation on Debian 6.

    Nginx is reported offline on control panel (Web-server: Offline), but it is running...

    Code:
    /etc/init.d/nginx status
    nginx is running.
    Any hints?
     
  2. TAiS46

    TAiS46 New Member

    Hello,

    same for me ... what to do?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that nginx is listening to localhost on port 80 on your server.
     
  4. baskin

    baskin New Member

    Thanks till. I'm not very familiar with nginx (it is my first install). How to check this?

    The server has only one site active and is working without issues.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    netstat -tap | grep http
     
  6. baskin

    baskin New Member

    I have this:

    Code:
    netstat -tap | grep http
    tcp        0      0 *:http-alt              *:*                     LISTEN      11845/nginx
    I haven't changed anything after the initial install (from the how to). I think it happened after an nginx update, but i'm not sure.
     
  7. TAiS46

    TAiS46 New Member

    same for me from netstat, also nginx update and ispconfig newest version!
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Please post the output of
    Code:
    netstat -tapn
    nginx must be listening on port 80 on localhost; http-alt refers to port 8080.
     
  9. TAiS46

    TAiS46 New Member

    Code:
    tcp        0      0 198.27.**.***:80        0.0.0.0:*               LISTEN      23065/nginx
    But not to localhost?
    Hm, how to change it?
     
  10. baskin

    baskin New Member

    Same here.

    Code:
    tcp        0      0 77.xxx.xxx.xxx:80        0.0.0.0:*               LISTEN      2684/nginx      
    tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      2684/nginx      
    tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      2684/nginx
     
  11. TAiS46

    TAiS46 New Member

    I found out, that all sites in Nginx have
    listen IP:80

    If I change the ip from the site in IPSconfig to *,
    than the status is online, but the website is not reachable anymore.

    In the sites config file is listen *:80
     
  12. baskin

    baskin New Member

    I have set the only one site that is running on the server, to a specific ip address. If i changed it to "*", nginx appears online.
     

Share This Page