404 Not Found nginx/1.18.0 (Ubuntu) в приложении django на ec2
С помощью этого сообщества я смог развернуть свое первое приложение django на EC2 ubuntu 20.04. После развертывания я не могу оценить все страницы в браузере, но в разработке все страницы отображаются. Я не знаю, с чего начать отладку, потому что каждая страница отображается в браузере как 404 Not Found nginx/1.18.0
. Гуникорн работает правильно guni:gunicorn RUNNING pid 121305, uptime 0:54:04.
. Содержимое /etc/nginx/sites-available/default
является
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name ip-address;
Пожалуйста, как мне поступить, потому что я мало знаю о nginx