아파치에서 작동하도록 가상 호스트를 만드는 데 문제가 있습니다. 가상 호스트는 잘 돌아 갔지만 갑자기 오늘은 작동하지 않습니다. 가상 호스트를 만들기 위해 httpd-vhosts 파일을 열고 아래의 구성과 같이 입력하십시오.
<VirtualHost hello.dev:80>
ServerAdmin xyz@ty.com
DocumentRoot "H:\www\hello_webservice"
ServerName hello.dev
ServerAlias www.hello.dev
ErrorLog "logs/hello.dev-error.log"
CustomLog "logs/hello.dev-access.log" common
</VirtualHost>
그런데 아파치는 localhost를 통해 htdocs에 접근 할 수 있기 때문에 아파치가 작동하고있다.
답변
Apache 서버를 다시 시작하십시오.
sudo service apache2 restart
Windows의 경우 :
httpd.exe -k restart