Question

Hello, I am facing problem on my website as it only shows connection time out and I can't even go to admin section.

I have installed 17.10 Ubuntu version.

This is what my log looks like. total 444384 -rw-r–r-- 1 root root 2704 Jun 17 18:00 alternatives.log -rw-r–r-- 1 root root 734 Jun 14 06:55 alternatives.log.1 -rw-r–r-- 1 root root 194 May 3 02:46 alternatives.log.2.gz -rw-r–r-- 1 root root 173 Mar 20 06:12 alternatives.log.3.gz -rw-r–r-- 1 root root 661 Jan 23 06:43 alternatives.log.4.gz -rw-r----- 1 root adm 0 Mar 30 06:25 apport.log -rw-r----- 1 root adm 113 Mar 29 16:07 apport.log.1 drwxr-xr-x 2 root root 4096 Jun 21 09:30 apt -rw-r----- 1 syslog adm 2604159 Jun 27 05:49 auth.log -rw-r----- 1 syslog adm 35989156 Jun 25 06:25 auth.log.1 -rw-r----- 1 syslog adm 1071034 Jun 17 06:25 auth.log.2.gz -rw-r----- 1 syslog adm 1993835 Jun 11 06:25 auth.log.3.gz -rw-r----- 1 syslog adm 1791510 Jun 3 06:25 auth.log.4.gz -rw------- 1 root utmp 107454720 Jun 27 05:47 btmp -rw------- 1 root utmp 301344000 Jun 1 06:25 btmp.1 -rw-r–r-- 1 root root 28835 Jun 20 11:00 cloud-init-output.log -rw-r–r-- 1 syslog adm 964926 Jun 20 11:00 cloud-init.log drwxr-xr-x 2 root root 4096 Oct 24 2017 dist-upgrade -rw-r–r-- 1 root root 210750 Jun 21 09:30 dpkg.log -rw-r–r-- 1 root root 70776 May 9 06:21 dpkg.log.1 -rw-r–r-- 1 root root 1965 Apr 24 06:46 dpkg.log.2.gz -rw-r–r-- 1 root root 2566 Mar 29 15:08 dpkg.log.3.gz -rw-r–r-- 1 root root 1654 Feb 27 06:54 dpkg.log.4.gz -rw-r–r-- 1 root root 18488 Feb 1 11:16 dpkg.log.5.gz -rw-r–r-- 1 root root 0 Jun 16 08:41 firewalld drwxr-sr-x+ 3 root systemd-journal 4096 May 3 02:32 journal -rw-r----- 1 syslog adm 0 Jun 25 06:25 kern.log -rw-r----- 1 syslog adm 312213 Jun 22 08:01 kern.log.1 -rw-r----- 1 syslog adm 119331 Jun 17 06:15 kern.log.2.gz -rw-r----- 1 syslog adm 118805 Jun 14 06:24 kern.log.3.gz -rw-r----- 1 syslog adm 610 May 3 02:46 kern.log.4.gz -rw-rw-r-- 1 root utmp 292584 Jun 27 05:49 lastlog drwx------ 2 root root 4096 Jan 19 03:02 letsencrypt drwxr-xr-x 2 root root 4096 Oct 15 2017 lxd drwxr-s— 2 mysql adm 4096 Jun 26 06:25 mysql drwxr-xr-x 2 root adm 4096 Jun 21 06:25 nginx -rw------- 1 root root 56 Jun 25 06:25 php7.1-fpm.log -rw------- 1 root root 618 Jun 20 11:00 php7.1-fpm.log.1 -rw------- 1 root root 160 Apr 16 16:03 php7.1-fpm.log.10.gz -rw------- 1 root root 76 Apr 9 06:25 php7.1-fpm.log.11.gz -rw------- 1 root root 158 Apr 8 08:24 php7.1-fpm.log.12.gz -rw------- 1 root root 254 Jun 17 06:12 php7.1-fpm.log.2.gz -rw------- 1 root root 159 Jun 7 06:13 php7.1-fpm.log.3.gz -rw------- 1 root root 76 May 27 06:25 php7.1-fpm.log.4.gz -rw------- 1 root root 162 May 25 13:34 php7.1-fpm.log.5.gz -rw------- 1 root root 195 May 20 10:35 php7.1-fpm.log.6.gz -rw------- 1 root root 186 May 10 15:05 php7.1-fpm.log.7.gz -rw------- 1 root root 206 May 6 15:19 php7.1-fpm.log.8.gz -rw------- 1 root root 169 Apr 26 16:29 php7.1-fpm.log.9.gz -rw-r----- 1 syslog adm 27532 Jun 27 05:49 syslog -rw-r----- 1 syslog adm 33283 Jun 26 06:25 syslog.1 -rw-r----- 1 syslog adm 3777 Jun 25 06:25 syslog.2.gz -rw-r----- 1 syslog adm 3537 Jun 24 06:25 syslog.3.gz -rw-r----- 1 syslog adm 3521 Jun 23 06:25 syslog.4.gz -rw-r----- 1 syslog adm 3570 Jun 22 06:25 syslog.5.gz -rw-r----- 1 syslog adm 35517 Jun 21 06:25 syslog.6.gz -rw-r----- 1 syslog adm 3685 Jun 20 06:25 syslog.7.gz -rw-r----- 1 syslog adm 0 Jun 25 06:25 ufw.log -rw-r----- 1 syslog adm 218457 Jun 22 08:01 ufw.log.1 -rw-r----- 1 syslog adm 351 Jun 17 06:15 ufw.log.2.gz drwxr-x— 2 root adm 4096 Jun 1 06:25 unattended-upgrades drwxr-x— 2 varnishlog varnish 4096 Jun 26 06:25 varnish -rw-r----- 1 root adm 0 Jun 25 06:25 vsftpd.log -rw-r----- 1 root adm 12769 Jun 22 07:49 vsftpd.log.1 -rw------- 1 root root 5191 Jun 16 16:55 vsftpd.log.2 -rw-rw-r-- 1 root utmp 67968 Jun 27 05:49 wtmp -rw-rw-r-- 1 root utmp 5376 Jun 1 05:09 wtmp.1

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

The syntax of your configuration file looks fine. What I could suggest here is:

  • First check if nginx is running:
systemctl status nginx
  • If Nginx is not running you could try starting it:
systemctl start nginx
  • If this is not the case, check if Nginx is actually listening on port 443:
netstat -plant | grep 443
  • If you don’t see any output, run a config test:
nginx -t
  • And if you get Syntax OK restart Nginx:
systemctl restart nginx
  • Lastly if all that does not help, make sure to check your Nginx error logs:
tail -100 /var/log/nginx/error.log

Regards, Bobby