求助:运行/root/vhost.sh 添加域名,不能正常访问,添加过程中报错
求助:运行/root/vhost.sh 添加域名,不能正常访问,添加过程中报错运行/root/vhost.sh 添加域名,aaa.com
提示:
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
Restart Nginx......
Restart Apache......
Warning: DocumentRoot does not exist
查看了一下,/usr/local/nginx/conf/vhost/域名.conf,也存在
安装过程中输入域名所在目录环节,我输入的不是aaa.com而是aaa,就是让它存放在/home/wwwroot/aaa/而不是/home/wwwroot/aaa.com/中。
/home/wwwroot/中也没有aaa目录,手动创建,我的解析是没问题的,打开主页,提示:
Internet Explorer 无法显示该网页
补充说明
打开网页:Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
www.aaa.com
Sat Apr 14 17:24:07 2012
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.2.17p1 vhost.sh添加时的目录需要输入全路径
不行就自己创建目录,然后修改配置文件中的目录
/usr/local/nginx/conf/vhost/域名.conf
/usr/local/apache/conf/vhost/域名.conf
非常感谢,已经改好了,情况依旧,是不是需要重启一下什么的,如何操作啊?
非常感谢,已经改好了,情况依旧,是不是需要重启一下什么的,如何操作啊?
页:
[1]