如何解决当我将公共 IPv4 地址更改为 DNS 时,nginx 给我错误
我正在 AWS 上设置我的 ec2 机器,当我将 server_name 从 x.xxx.xx.xxx
更改为 ec2-x-xxx-xx-xxx.eu-central-1.compute.amazonaws.com
并运行时
sudo service nginx restart
它给了我
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
启用 nginx 站点的文件
server {
listen 80;
server_name ec2-xx-xxx-xxx-xxx.eu-central-1.compute.amazonaws.com;
access_log /var/log/nginx/example.log;
location / {
proxy_pass http://127.0.0.1:8000;
}
}
我可以尝试什么来解决这个问题?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。