Can't start nginx after restoring backup
Can't start nginx after restoring backup
service nginx configtest
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /home/admin/conf/web/apache2.conf:341
nginx: configuration file /etc/nginx/nginx.conf test failed
root@nlssd1:~# service nginx restart
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
Can restart vestacp fine.
Debain 7 backup > Debian 8 backup restore
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /home/admin/conf/web/apache2.conf:341
nginx: configuration file /etc/nginx/nginx.conf test failed
root@nlssd1:~# service nginx restart
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
Can restart vestacp fine.
Debain 7 backup > Debian 8 backup restore
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Can't start nginx after restoring backup
'Rebuild web' of that user.
Re: Can't start nginx after restoring backup
root@nlssd1:~# v-rebuild-web-domains admintjebbeke wrote:'Rebuild web' of that user.
Error: nginx restart failed
Edit: Now everything works well, but it always shows the apache2 debian defaul page..
Re: Can't start nginx after restoring backup
Is that you are missing ";" in etc/nginx/sites-available/default?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Can't start nginx after restoring backup
Try: sudo nginx -t