问题描述
标题有点难懂。。。情况如下:<VirtualHost *:8080>
<Directory /var/www/ip/html> Allow from all</Directory>ServerAdmin webmaster@domain.comDocumentRoot /var/www/ip/htmlServerName 104.xxx.xxx.xxxErrorLog /var/www/ip/html/error/error_log.logCustomLog /var/www/ip/html/log/access_log.log common
</VirtualHost>
用虚拟主机设置服务器ip来访问如果去掉ErrorLog与CustomLog这两行,httpd可以restart,不然的话就会出现
[root@localhost ip]# service httpd restartStopping httpd: [FAILED]Starting httpd: [FAILED]
也没提示什么原因,不知道如何解决。
问题解答
回答1:首先不知道为什么你的access.log、error.log会放在web应用的目录下面,日志不应该分开吗?其次,我觉得是这两个文件的权限问题,包括它的上级目录和文件本身的权限