2014-07-24 7 views
0

아파치에 이상한 점이 있습니다. 새로운 가상 호스트를 추가하고 다른 가상 호스트로 이동하면 다른 호스트 홈 디렉토리로 리디렉션됩니다. 나는 host1, host2 그리고 새로 생성 된 host3을 가지고있다. 호스트 3에 대한 주소를 찾으면 host1 사이트로 연결됩니다. 지금 host1을 제거했지만 여전히 host1로 이동하려고합니다 (Apache 로그에 "
[7 월 24 일 16:31:33 2014] [오류] [클라이언트 127.0.0.1] 파일이 존재하지 않습니다 : C :/WWW /htdocs/public/host1/index.html "httpd.conf에서 제거 된 host1 사이트의 홈 디렉토리입니다. Apache 서비스가 다시 시작되고 다른 모든 .conf 파일도 확인되었습니다. host1에 대한 언급이 없습니다. 여기 어떻게 구성 :제거 된 가상 호스트로 리디렉션하는 Apache

################# host2 ############################ 
<VirtualHost host2.net:80> 


DocumentRoot "C:/WWW/htdocs/host2/public/" 
ServerName host2 
ServerAlias host2.local 

<Directory "C:/WWW/htdocs/host2/public/"> 
     Options Indexes FollowSymLinks 
     DirectoryIndex index.php index.html 
    AllowOverride all 
    Order allow,deny 
    Allow from all 
</Directory> 

</VirtualHost> 



################# host3 ############################ 
<VirtualHost host3.net:80> 


DocumentRoot "C:/WWW/htdocs/host3/public/" 
ServerName host3 
ServerAlias host3.local 

<Directory "C:/WWW/htdocs/host3/public/"> 
     Options Indexes FollowSymLinks 
     DirectoryIndex index.php index.html 
    AllowOverride all 
    Order allow,deny 
    Allow from all 
</Directory> 

</VirtualHost> 

감사

+0

경우에 따라 브라우저의 캐시를 제거하는 것이 좋습니다. –

+0

해냈어. 시도 다른 브라우저, 심지어 아파치 서버와 PC를 재부 팅. – user3195616

답변

0

경우 사람에서 같은 문제가 - 난 그냥 그 소프트웨어가 제거되면 포트 80 덤비는되어 내 PC에 하나의 소프트웨어를 발견 - 내 아파치가 잘 작동

관련 문제