我收到一个nginx错误:"nginx.server failed"我需要了解如何解决此问题



我正在尝试在Amazon Web Service上设置NGINX…Ubuntu .

在我做了这个之后…

server {
listen 80 default_server;
root /home/ubuntu/public_html;
location /application1 {}
location /images {
root /home/ubuntu/data;
}
}

我试图重新启动NGNIX,我得到这个错误

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
谁能帮助一个新手知道下一步该做什么?

试试这个

server {
listen 80 default_server;
root /home/ubuntu/public_html;
location ^~ /images {
alias /home/ubuntu/data;
try_files $uri $uri/ /images/index.html;
}

location ^~ /application1 {
alias /home/ubuntu/data;
try_files $uri $uri/ /application1/index.html;
}
}

我能知道你想要托管哪个框架吗

最新更新