Python Nginx:子域配置文件

Python Nginx:子域配置文件,python,linux,nginx,server,centos,Python,Linux,Nginx,Server,Centos,我有一个子域名,目前它显示一个index.html页面,其中只包含域名等 该index.html页面正在从/home/admin/web/************.com/public\u html加载 我找不到的是指向该目录的配置文件。 我检查了两次/etc/nginx/conf.d它没有任何指向该页面的内容 我正在将centOs与nginx一起使用 /etc/nginx/nginx.conf: 如果检查配置文件,您将看到以下内容: include /etc/nginx/sites-enabl

我有一个子域名,目前它显示一个
index.html
页面,其中只包含域名等

index.html
页面正在从
/home/admin/web/************.com/public\u html
加载

我找不到的是指向该目录的配置文件。

我检查了两次
/etc/nginx/conf.d
它没有任何指向该页面的内容

我正在将centOs与nginx一起使用

/etc/nginx/nginx.conf:


如果检查配置文件,您将看到以下内容:

include /etc/nginx/sites-enabled/*;
这意味着将从“/etc/nginx/sites enabled/”加载其他vhost配置文件


正确的使用方法是使/etc/nginx/sites中的配置文件可用/并在/etc/nginx/sites中创建指向它们的符号链接启用/

是否检查了nginx.conf文件,类似于:
root/home/admin/web/*********.com/public_html
index.html
@thanhnguenvan您的评论中没有提到任何内容您能显示
nginx.conf
文件的内容吗here@ThanhNguyenVan添加的文件
nginx.conf
没有目录
/etc/nginx/sites enabled/
。能否运行“nginx-t”并将其显示的内容粘贴到nginx配置文件位置?输出为:
nginx:configuration file/etc/nginx/nginx.conf测试成功
include /etc/nginx/sites-enabled/*;