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。
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。