首页 > 解决方案 > 域名的 Nginx 配置

问题描述

我已经使用 nginx 配置设置了我的网站,它正在使用这个地址:http: //178.128.44.106/ 但是当我尝试将域名链接到它时,我到达了 NGINX 配置页面:http://lawoodtech。 FR/

这是我的 nginx 配置:

server {
    listen 80;
    server_name 178.128.44.106 lawoodtech.fr www.lawoodtech.fr;

    location = /favicon.ico { access_log off; log_not_found off; }
    location /static/ {
        root /home/djangoadmin/pyapps/woodtech;
    }
    
    location /media/ {
        root /home/djangoadmin/pyapps/woodtech;    
    }

    location / {
        include proxy_params;
        proxy_pass http://unix:/run/gunicorn.sock;
    }
}

关于如何解决这个问题的任何想法?

标签: nginx

解决方案


推荐阅读