2011-09-20 2 views
0

wampserver 사용 명명 된 가상 호스트를 작동시킬 수 없습니다.Wampserver가 작동하도록 명명 된 가상 호스트를 가져올 수 없습니다.

Include conf/extra/httpd-vhosts.conf 

내 system32/driver/etc/hosts 파일에 도메인을 추가했습니다. httpd-vhosts.conf 파일을 편집했는데 localhost를 사용할 수 없다는 것을 제외하고는 모든 것이 작동하는 것처럼 보입니다. 도메인 설정 (test123.com) 잘 작동, 127.0.0.1 때리는 괜찮아요,하지만 localhost를 때리는 중지 응답하지 않습니다. 오류 로그에는 아무런 관련이 없으며 액세스 로그에는 언급되지 않습니다. 다음은 httpd-vhosts.conf 편집 방법입니다.

# 
# Virtual Hosts 
# 

# 
# Use name-based virtual hosting. 
# 
NameVirtualHost *:80 

# Tells Apache to serve the default WAMP Server page to "localhost" 
<VirtualHost *:80> 
    ServerName localhost 
    DocumentRoot "C:/wamp/www" 
    <Directory "C:/wamp/www"> 
     Options FollowSymLinks 
     AllowOverride all 
     Order allow,deny 
     Allow from all 
    </Directory> 
    DirectoryIndex index.php 
</VirtualHost> 

<VirtualHost *:80> 
    ServerName test123.com 
    ServerAlias *.test123 
    # Folder where the files live 
    DocumentRoot "D:/Projects/html/test123" 
    # A few helpful settings... 
    <Directory "D:/Projects/html/test123"> 
     Options FollowSymLinks 
     AllowOverride all 
     Order allow,deny 
     Allow from all 
    </Directory> 
    DirectoryIndex index.php 
</VirtualHost> 

내가 뭘 잘못하고 있니?

답변

0

마지막으로 알아 냈습니다. 을 httpd.conf에서 나는

Listen *:80 

Listen 80 

을 변경했다

관련 문제