2015-01-26 2 views
1

wamp 2.5와 apache 2.4.9를 설치했습니다. www 폴더에 간단한 PHP 파일을 추가합니다. 로컬 호스트에서 액세스하려고 시도하면 다음과 같은 메시지가 나타납니다.DNS 조회가 wamp 서버와 함께 실패했습니다.

The server at main can't be found, because the DNS lookup failed. DNS is the 
network service that translates a website's name to its Internet address. This 
error is most often caused by having no connection to the Internet or a 
misconfigured network. It can also be caused by an unresponsive DNS server or 
a firewall preventing Google Chrome from accessing the network. 

DNS 검색 실패 문제는 무엇입니까? Windows 7을 사용하고 있습니다.

+0

주소 표시 줄에 무엇을 입력하여 액세스 했습니까? –

+0

localhost에는 www wamp 폴더에있는 폴더가 있습니다. main.php가 위치한 메인 폴더에 접근하려고 시도했는데이 오류가 발생했습니다. –

+0

1. 내가 말한 것은 http : // localhost 또는 다른 것을 입력 했습니까? –

답변

1

http://main/을 입력하여 웹 페이지에 액세스하려는 것 같습니다. 문제는 Google-Chrome이 도메인 main을 확인하려고 시도하며 존재하지 않기 때문에 실패합니다.

main에서 hosts까지 파일을 C:\Windows\System32\Drivers\etc\hosts에 추가하는 것이 하나의 해결책이며,보다 자세한 도움말은 here입니다.

더 나은 방법은 Apache에 ServerName 지시문을 사용하여 구성한 서버의 이름을 확인하고이를 사용하는 것입니다.

관련 문제