Py学习  »  NGINX

nginx索引页来代替实际的网站在路由53与ec2实例

soubhagya • 4 年前 • 447 次点击  

我在aws ec2实例中托管了我的django网站 具有低于IP并指向低于域

nginx文件

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/ubuntu/myproject
ExecStart=/home/ubuntu/myproject/env/bin/gunicorn --access-logfile - --workers 3 --bind unix:/home/ubuntu/myproject/myproject.sock myproject.wsgi:application

[Install]
WantedBy=multi-user.target



18.221.162.213
http://govtcarrier.in/

当我在我的浏览器中转到18.221.162.213时,它将出现在我的网站上 但是当我要去的时候 http://govtcarrier.in/ 它正在显示nginx欢迎页面。

请检查下面的截图 enter image description here enter image description here enter image description here enter image description here enter image description here enter image description here

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/47803
 
447 次点击