Wamp 2.2를 사용하고 있습니다. conf/extra/httpd-vhosts.conf
이 파일을 편집하여 VirtualHosts를 추가했지만, httpd.conf
에 http-vhosts.conf 파일을 포함하는 줄의 주석을 해제하면 Wamp가 다시 시작되지 않고 시작되지 않습니다. 변경 사항을 되돌리려면 잘 작동합니다.WAMP가 설치된 가상 호스트
왜 이런 생각입니까?
이
내가httpd-vhost.conf
에서 사용하고 코드 :
안드레아스 하겐 제안
으로
편집
<VirtualHost *>
ServerAdmin [email protected]
DocumentRoot "C:/wamp/www" # change this line with your htdocs folder
ServerName localhost
ServerAlias localhost
<Directory "C:/wamp/www">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# WooCommerce Multisite
<VirtualHost dev.lo>
ServerAdmin [email protected]
DocumentRoot "C:/wamp/www/dev"
ServerName dev.lo
ServerAlias dev.lo
<Directory "C:/wamp/www/dev">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
감사
조지, 나는 아파치를 통해 아파치를 실행 .exe.
DocumentRoot
에 하나만 허용되는 경우 첫 번째 오류는 DocumentRoot
의 매개 변수가 잘못되었습니다. 두 번째 매개 변수로 사용 된 것처럼 표시됩니다.
다음 경고 : [warn] NameVirtualHost *:80 has no VirtualHosts
입니다. 빠른 검색을했고 매우 유용한 질문을 찾았습니다. - https://serverfault.com/questions/1405/apache-2-startup-warning-namevirtualhost-80-has-no-virtualhosts
cmd를 시작하는 명령은 무엇입니까? – Mamaduka
exe 파일을 실행하기 만하면됩니다. 그것은 httpd.exe –
라고 이름이 붙어 있다고 생각하지만, httpd.exe를 열 자마자 닫히므로 오류 통지를 얻을 수 없습니다. – Mamaduka