配置虚拟主机502报错

问答中心分类: OneinStack配置虚拟主机502报错
匿名用户 提问 2年 前

 lnmpa环境,安装完成,配置虚拟主机报错,提示:
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx……
AH00526: Syntax error on line 216 of /usr/local/apache/conf/httpd.conf:
DocumentRoot must be a directory
http.conf的216行是:
DocumentRoot “/home/www/default”
输入域名,提示502。