We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Nginx fails to start
Nginx fails to start
After i remove a domain aliases and add it as a normal domain nginx failing to start
I get this mail
I get this mail
Code: Select all
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Redirecting to /bin/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.
Re: Nginx fails to start
to investigate
Code: Select all
root@srv ~]# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] the same path name "/var/cache/nginx/domain.com" used in /etc/ nginx/conf.d/01_caching_pool.conf:2 and in /etc/nginx/conf.d/01_caching_pool.con f:8
nginx: configuration file /etc/nginx/nginx.conf test failed
You have new mail in /var/spool/mail/root
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Nginx fails to start
When you open /etc/nginx/conf.d/01_caching_pool.conf You will see 2 line with the same content /var/cache/nginx/domain.com.
Delete one of this lines and try again.
Delete one of this lines and try again.
Re: Nginx fails to start
Great, that solved my problem too, thanks!