1.配置文件默认是/etc/nginx/conf.d/default.conf源码安装一般是/usr/local/nginx/conf/nginx.conf2.修改字段网站目录和域名配置是server { listen 80; server_name 域名location / { root 网站目录
httpd.conf
UNIX/Linux操作系统的虚拟主机请将网页文件上传到htdocs目录下