標題有點難懂。。。
情況如下:<VirtualHost *:8080>
<Directory /var/www/ip/html>
Allow from all
</Directory>
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/ip/html
ServerName 104.xxx.xxx.xxx
ErrorLog /var/www/ip/html/error/error_log.log
CustomLog /var/www/ip/html/log/access_log.log common
</VirtualHost>
用虛擬主機設(shè)置服務(wù)器ip來訪問
如果去掉ErrorLog與CustomLog這兩行,httpd可以restart,不然的話就會出現(xiàn)
[root@localhost ip]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
也沒提示什么原因,不知道如何解決。
首先不知道為什么你的access.log、error.log會放在web應(yīng)用的目錄下面,日志不應(yīng)該分開嗎?其次,我覺得是這兩個文件的權(quán)限問題,包括它的上級目錄和文件本身的權(quán)限