i have changed it to 8080 but the port is already in use
i have also tried to 8443, same result
i@smhpi:~ $ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
pi@smhpi:~ $ sudo systemctl restart nginx.service
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
pi@smhpi:~ $ sudo systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-08-22 00:04:49 IDT; 11s ago
Docs: man:nginx(8)
Process: 7088 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 7710 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 7708 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 4542 (code=exited, status=0/SUCCESS)
Aug 22 00:04:48 smhpi nginx[7710]: nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
Aug 22 00:04:48 smhpi nginx[7710]: nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
Aug 22 00:04:48 smhpi nginx[7710]: nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
Aug 22 00:04:49 smhpi nginx[7710]: nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
Aug 22 00:04:49 smhpi nginx[7710]: nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
Aug 22 00:04:49 smhpi nginx[7710]: nginx: [emerg] still could not bind()