2013-08-05 4 views
2

hothouse의 모든 하위 도메인을 hothouse \ testsite로 리디렉션하려고하는데 작동하지 않습니다.apache 가상 호스트에 로컬 호스트 하위 도메인 추가

DocumentRoot와 VirtualDocumentRoot의 차이를 이해하지 못합니다. 차이가 있는지 확실하지 않습니다.

왜 'testsite.hothouse'가 제대로 작동하지 않는지 아이디어는 괜찮습니다. 'test.hothouse'또는 하위 도메인. 하우스가 'www.subdomain.hothouse'로 리디렉션되지 않습니다.

나는 이것을 해결하기 위해 하루 종일 보냈다. 나는 모든 브라우저 캐시를 지웠다. BTW 내가 WAMP

DocumentRoot "D:\wamp\www" 
<Directory "D:\wamp\www"> 
    Options Indexes FollowSymLinks Includes ExecCGI 
    AllowOverride All 
    Order allow,deny 
    Allow from all 
</Directory> 

<VirtualHost *:80> 
DocumentRoot "D:\wamp\www" 
ServerName localhost 
</VirtualHost> 

<VirtualHost *:80> 
VirtualDocumentRoot "D:\wamp\www\hothouse\testsite" 
ServerName testsite.hothouse 
ServerAlias test.hothouse 
</VirtualHost> 

<VirtualHost *:80> 
    VirtualDocumentRoot "D:\wamp\www\hothouse\testsite" 
    ServerName subdomain.hothouse 
    ServerAlias *.hothouse 
</VirtualHost> 
+0

실행중인 Apache 버전은 무엇입니까? – RiggsFolly

+0

좋아, 바보 같은 느낌, 내 Windows 호스트 파일을 변경해야했습니다. – redstubble

답변

0

을 사용하고 있습니다 문제는 아파치 설정 아니었지만, 나는 로컬 호스트로 리디렉션 내 Windows 호스트 파일을 업데이트하지 않았다.

관련 문제