Answer the question
In order to leave comments, you need to log in
Why is nginx not starting?
Hello! After editing nginx.conf, I restart nginx. Gives an error message:
[....] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
failed!
location ~* \.(txt|xml|js)$ {
expires 8d;
}
location ~* \.(css)$ {
expires 8d;
}
location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$ {
expires 8d;
}
location ~* \.(jpg|jpeg|png|gif|swf|webp)$ {
expires 8d;
}
Answer the question
In order to leave comments, you need to log in
expires 8d;
- replace with expires max;
- google page speed requirements.
Now on the points
1. journalctl -xe
- you have already been written
2. nginx -t
3. just look at what is in the nginx log
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question