nginx - 域名的 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;
}
}
关于如何解决这个问题的任何想法?
解决方案
推荐阅读
- python - 想在 python 中使用机器学习来增加质心点。?
- linux - 每行搜索一次匹配
- husky - Husky/lint-staged 预提交格式问题
- spring-tools-4 - 在 Eclipse Spring 首选项中选中“禁用自动配置检测”有什么后果?
- java - Java 如何处理低级 Socket 网络逻辑
- apache-nifi - 面向记录的 InvokeHTTP 处理器
- python - 对不同长度元素的列表理解
- java - CompletableFuture#exceptionally 重新抛出检查异常
- python - 如何将if语句从SAS写入python
- python - 是否可以在 Python 中反转雷达图上的轴方向?