![AH00112: 경고: DocumentRoot [/html/www/html]가 존재하지 않습니다.](https://rvso.com/image/1024456/AH00112%3A%20%EA%B2%BD%EA%B3%A0%3A%20DocumentRoot%20%5B%2Fhtml%2Fwww%2Fhtml%5D%EA%B0%80%20%EC%A1%B4%EC%9E%AC%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
내가 할 때
cd /etc/apache2/
apache2ctl configtest
나는 이것을 얻습니다 :
AH00112: 경고: DocumentRoot [/html/www/html]가 존재하지 않습니다.
해당 줄을 어디서 찾을 수 있고 변경할 수 있나요?
답변1
실제로는 오류가 아닌 경고일 뿐이므로 무시해도 됩니다. DocumentRoot
가상 호스트에 존재하지 않는 경로를 정의하면 이런 일이 발생합니다 . 해당 경고를 제거하려면 해당 디렉토리를 가리키는 가상 호스트를 찾으십시오. 일반적으로 /etc/apache2/sites-enabled/000-default.conf
다음과 같이 포함됩니다.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
DocumentRoot /var/www/html
올바른 경로로 변경 하거나 해당 가상 호스트를 제거하십시오.