https does not work

Discussion in 'Installation/Configuration' started by Isterklister, Feb 6, 2012.

  1. Isterklister

    Isterklister New Member

    Hello,
    I have installed a new server and followed http://www.howtoforge.com/perfect-server-ubuntu-11.10-with-nginx-ispconfig-3.

    I have a small problem with https. I cannot connect with https (ex https://ip-adress:8080 for ISPConfig). After I have accepted the cert I will get the error "502 Bad Gateway".

    What is wrong?

    Info from log-file:
    /var/log/nginx/error.log

    2012/02/06 12:35:54 [crit] 20546#0: *33 connect() to unix:/var/lib/php5-fpm/ispconfig.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.19.116, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/ispconfig.sock:", host: "192.168.19.38:8080"

    /Pelle
     
  2. Isterklister

    Isterklister New Member

    Solved

    Hello again,
    I am not absolutely sure why it is working now but it does.

    I looked in my interfaces file and commented one line with dns info, reboot and now it is working.

    I tried to get the same error message by inserted the dns line in interfaces (network) but I cannot force the error to reuppear.


    *****
    I now did see this line in the instructrions:
    (If you get a 502 Bad Gateway error, just restart PHP-FPM and try again:
    /etc/init.d/php5-fpm restart
    *****

    /Pelle
     
    Last edited: Feb 6, 2012
  3. falko

    falko Super Moderator Howtoforge Staff

Share This Page