Godaddy DNS到AWS EC2

时间:2018-05-05 01:40:35

标签: nginx amazon-ec2 dns

需要有关我的网络服务器配置的帮助。我正在使用Python Django,Gunicorn,Nginx。 DNS查找工具显示正确的IP。当我转到我的域名时,它返回Bad Request(400)

#GODADDY RECORDS:

Type    Name    Value   TTL     Actions

  1. a  @   11.222.33.444   600 seconds 

  2. a  www     11.222.33.444   600 seconds

#My SETTINGS.PY FILE: 

ALLOWED_HOSTS = ['11.222.33.444']

#NGNIX SETTINGS: 

server {

  listen 80;

  server_name 11.222.33.444 domainname.com www.domainname.com;

  location = /favicon.ico { access_log off; log_not_found off; }

  location /static/ {

  root /home/ubuntu/Portfolio;
  }

  location / {

      include proxy_params;

      proxy_pass http://unix:/home/ubuntu/Portfolio/main.sock;

  }

}

0 个答案:

没有答案